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.


Method Summary
 JotExpression getArray()
          Returns the expression representing the accessed array.
 JotExpression getIndex()
          Returns the expression representing the array index.
 
Methods inherited from interface com.borland.jbuilder.jot.JotExpression
getAssignment, getCondition, getMethodCall, getNew, getOperation, getValue, getVariable, isConstant, isNull
 
Methods inherited from interface com.borland.jbuilder.jot.JotMarker
addUserData, getEndPosition, getStartPosition, getUserData
 
Methods inherited from interface com.borland.jbuilder.jot.JotSourceElement
getIndentLevel, getParent, getText, isModified, setModified, setText
 

Method Detail

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.