APIdia Launch Partner
Top Description Methods
com.sun.source.tree

public Interface ArrayAccessTree

extends ExpressionTree
Known Direct Implementers
com.sun.tools.javac.tree.JCTree.JCArrayAccess

A tree node for an array access expression. For example:
  expression [ index ]
Authors
Peter von der Ahé, Jonathan Gibbons
Since
1.6
Java Language Specification
15.10.3 Array Access Expressions

Method Summary

Modifier and TypeMethod and Description
public ExpressionTree

Returns:

the array
getExpression
()

Returns the expression for the array being accessed.

public ExpressionTree

Returns:

the index
getIndex
()

Returns the expression for the index.

Method Detail

getExpressionback to summary
public ExpressionTree getExpression()

Returns the expression for the array being accessed.

Returns:ExpressionTree

the array

getIndexback to summary
public ExpressionTree getIndex()

Returns the expression for the index.

Returns:ExpressionTree

the index