|
||||||||||
| 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.FieldAccess
koala.dynamicjava.tree.ObjectFieldAccess
public class ObjectFieldAccess
This class represents the field access nodes of the syntax tree
| Field Summary |
|---|
| Fields inherited from interface koala.dynamicjava.tree.ExpressionContainer |
|---|
EXPRESSION |
| Constructor Summary | |
|---|---|
ObjectFieldAccess(Expression exp,
java.lang.String fln)
Creates a new field access node |
|
ObjectFieldAccess(Expression exp,
java.lang.String fln,
SourceInfo si)
Creates a new field access node |
|
| Method Summary | ||
|---|---|---|
|
acceptVisitor(Visitor<T> visitor)
Allows a visitor to traverse the tree |
|
Expression |
getExpression()
Returns the expression on which this field access applies |
|
void |
setExpression(Expression e)
Sets the expression on which this field access applies |
|
java.lang.String |
toString()
Implementation of toString for use in unit testing |
|
| Methods inherited from class koala.dynamicjava.tree.FieldAccess |
|---|
getFieldName, setFieldName |
| 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 ObjectFieldAccess(Expression exp,
java.lang.String fln)
exp - the expression on which this field access appliesfln - the field name
java.lang.IllegalArgumentException - if exp is null or fln is null
public ObjectFieldAccess(Expression exp,
java.lang.String fln,
SourceInfo si)
exp - the expression on which this field access appliesfln - the field name
java.lang.IllegalArgumentException - if exp is null or fln 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 <T> T acceptVisitor(Visitor<T> visitor)
acceptVisitor in class Nodevisitor - the visitor to acceptpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||