Class ArrayInitializer


public class ArrayInitializer extends Expression
Array initializer AST node type.
 ArrayInitializer:
                { [ Expression { , Expression} [ , ]] }
 
Since:
2.0
Restriction:
This class is not intended to be instantiated by clients.
  • Field Details

    • EXPRESSIONS_PROPERTY

      public static final ChildListPropertyDescriptor EXPRESSIONS_PROPERTY
      The "expressions" structural property of this node type (element type: Expression).
      Since:
      3.0
  • Method Details

    • propertyDescriptors

      public static List propertyDescriptors(int apiLevel)
      Returns a list of structural property descriptors for this node type. Clients must not modify the result.
      Parameters:
      apiLevel - the API level; one of the AST.JLS* constants
      Returns:
      a list of property descriptors (element type: StructuralPropertyDescriptor)
      Since:
      3.0
    • expressions

      public List expressions()
      Returns the live ordered list of expressions in this array initializer.
      Returns:
      the live list of expressions (element type: Expression)