|
||||||||||
| 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
public class ArrayAccess
This class represents the array access nodes of the syntax tree
| Field Summary |
|---|
| Fields inherited from interface koala.dynamicjava.tree.ExpressionContainer |
|---|
EXPRESSION |
| Constructor Summary | |
|---|---|
ArrayAccess(Expression exp,
Expression cell)
Creates a new array access node |
|
ArrayAccess(Expression exp,
Expression cell,
SourceInfo si)
Creates a new array access node |
|
| Method Summary | ||
|---|---|---|
|
acceptVisitor(Visitor<T> 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 |
|
String |
toString()
Implementation of toString for use in unit testing |
|
| Methods inherited from class koala.dynamicjava.tree.Node |
|---|
archiveProperties, getProperties, getProperty, getSourceInfo, hasProperty, setProperty, setSourceInfo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ArrayAccess(Expression exp,
Expression cell)
exp - the expression on which this array access appliescell - the cell number
IllegalArgumentException - if exp is null or cell is null
public ArrayAccess(Expression exp,
Expression cell,
SourceInfo si)
exp - the expression on which this array access appliescell - the cell number
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 ExpressionContainerIllegalArgumentException - if e is nullpublic Expression getCellNumber()
public void setCellNumber(Expression e)
IllegalArgumentException - if e is nullpublic <T> T acceptVisitor(Visitor<T> visitor)
acceptVisitor in class Nodevisitor - the visitor to acceptpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||