-
- All Superinterfaces:
ExpressionTree
,Tree
public interface ArrayAccessTree extends ExpressionTree
A tree node for an array access expression. For example:expression [ index ]
- Since:
- 9
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExpressionTree
getExpression()
Returns the array that is accessed.ExpressionTree
getIndex()
Returns the index of the array element accessed.-
Methods inherited from interface jdk.nashorn.api.tree.Tree
accept, getEndPosition, getKind, getStartPosition
-
-
-
-
Method Detail
-
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
-
-