Interface ArrayAccessTree
- All Superinterfaces:
ExpressionTree, Tree
A tree node for an array access expression.
For example:
expression [ index ]
- Since:
- 9
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the array that is accessed.getIndex()Returns the index of the array element accessed.Methods inherited from interface Tree
accept, getEndPosition, getKind, getStartPosition
-
Method Details
-
getExpression
ExpressionTree getExpression()Returns the array that is accessed.- Returns:
- the array that is accessed
-
getIndex
ExpressionTree getIndex()Returns the index of the array element accessed.- Returns:
- the index expression
-