Class ArrayCreation


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

      • dimensions

        protected final java.util.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 java.util.List<JavaExpression> initializers
        List of initializers.
    • Constructor Detail

      • ArrayCreation

        public ArrayCreation​(javax.lang.model.type.TypeMirror type,
                             java.util.List<@Nullable JavaExpression> dimensions,
                             java.util.List<JavaExpression> initializers)
        Creates an ArrayCreation object.
        Parameters:
        type - array type
        dimensions - list of dimension expressions; a {code null} element means that there is no dimension expression for the given array level.
        initializers - list of initializer expressions