|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectkoala.dynamicjava.tree.Node
koala.dynamicjava.tree.Expression
koala.dynamicjava.tree.PrimaryExpression
koala.dynamicjava.tree.ArrayAccess
This class represents the array access nodes of the syntax tree
| Field Summary | |
static java.lang.String |
CELL_NUMBER
The cellNumber property name |
static java.lang.String |
EXPRESSION
The expression property name |
| Fields inherited from class koala.dynamicjava.tree.Node |
BEGIN_COLUMN, BEGIN_LINE, END_COLUMN, END_LINE, FILENAME |
| Constructor Summary | |
ArrayAccess(Expression exp,
Expression cell)
Creates a new array access node |
|
ArrayAccess(Expression exp,
Expression cell,
java.lang.String fn,
int bl,
int bc,
int el,
int ec)
Creates a new array access node |
|
| Method Summary | |
java.lang.Object |
acceptVisitor(Visitor visitor)
Allows a visitor to traverse the tree |
Expression |
getCellNumber()
Returns the expression which denotes the cell number |
Expression |
getExpression()
Returns the expression on which this array access applies |
void |
setCellNumber(Expression e)
Sets the expression which denotes the cell number |
void |
setExpression(Expression e)
Sets the expression on which this array access applies |
| Methods inherited from class koala.dynamicjava.tree.Node |
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getFilename, getProperties, getProperty, hasProperty, removePropertyChangeListener, removePropertyChangeListener, setBeginColumn, setBeginLine, setEndColumn, setEndLine, setFilename, setProperty |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String EXPRESSION
public static final java.lang.String CELL_NUMBER
| Constructor Detail |
public ArrayAccess(Expression exp,
Expression cell)
exp - the expression on which this array access appliescell - the cell number
java.lang.IllegalArgumentException - if exp is null or cell is null
public ArrayAccess(Expression exp,
Expression cell,
java.lang.String fn,
int bl,
int bc,
int el,
int ec)
exp - the expression on which this array access appliescell - the cell numberfn - the filenamebl - the begin linebc - the begin columnel - the end lineec - the end column
java.lang.IllegalArgumentException - if exp is null or cell is null| Method Detail |
public Expression getExpression()
getExpression in interface ExpressionContainerpublic void setExpression(Expression e)
setExpression in interface ExpressionContainerjava.lang.IllegalArgumentException - if e is nullpublic Expression getCellNumber()
public void setCellNumber(Expression e)
java.lang.IllegalArgumentException - if e is nullpublic java.lang.Object acceptVisitor(Visitor visitor)
acceptVisitor in class Nodevisitor - the visitor to accept
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||