Class ArrayCreation

java.lang.Object
org.checkerframework.dataflow.expression.JavaExpression
org.checkerframework.dataflow.expression.ArrayCreation

public class ArrayCreation extends JavaExpression
JavaExpression for array creations. new String[]().
  • Field Details

    • dimensions

      protected final List<@Nullable JavaExpression> dimensions
      List of dimensions expressions. A {code null} element means that there is no dimension expression for the given array level.
    • initializers

      protected final List<JavaExpression> initializers
      List of initializers.
  • Constructor Details

    • ArrayCreation

      public ArrayCreation(TypeMirror type, List<@Nullable JavaExpression> dimensions, List<JavaExpression> initializers)
      Creates an ArrayCreation object.
      Parameters:
      type - array type
      dimensions - list of dimension expressions; a null element means that there is no dimension expression for the given array level
      initializers - list of initializer expressions
  • Method Details