Klasse ArrayAccess


public class ArrayAccess extends Expression
Array access expression AST node type.
 ArrayAccess:
    Expression [ Expression ]
 
Seit:
2.0
  • Felddetails

  • Methodendetails

    • propertyDescriptors

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

      public Expression getArray()
      Returns the array expression of this array access expression.
      Gibt zurück:
      the array expression node
    • setArray

      public void setArray(Expression expression)
      Sets the array expression of this array access expression.
      Parameter:
      expression - the array expression node
      Löst aus:
      IllegalArgumentException - if:
      • the node belongs to a different AST
      • the node already has a parent
      • a cycle in would be created
    • getIndex

      public Expression getIndex()
      Returns the index expression of this array access expression.
      Gibt zurück:
      the index expression node
    • setIndex

      public void setIndex(Expression expression)
      Sets the index expression of this array access expression.
      Parameter:
      expression - the index expression node
      Löst aus:
      IllegalArgumentException - if:
      • the node belongs to a different AST
      • the node already has a parent
      • a cycle in would be created