com.borland.jbuilder.jot
Interface JotSubscript
- All Superinterfaces:
- JotExpression, JotMarker, JotSourceElement
- public interface JotSubscript
- extends JotExpression
This interface represents an array access expression. See section 10.4
in the Java Language Specication for more information.
getArray
public JotExpression getArray()
- Returns the expression representing the accessed array. For example,
if this JotSubscript represents the expression
a[i][j]
, then
getArray()
returns a JotSubscript instance representing the
expression a[i]
.
getIndex
public JotExpression getIndex()
- Returns the expression representing the array index. For example, if
this JotSubscript represents the expression
a[i][j+1]
, then
getIndex()
returns a JotBinaryExpression instance representing
the expression j+1
.