|
||||||||||
| 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.StaticFieldAccess
public class StaticFieldAccess
This class represents the field access nodes of the syntax tree
| Constructor Summary | |
|---|---|
StaticFieldAccess(ReferenceTypeName typ,
java.lang.String fln)
Creates a new field access node |
|
StaticFieldAccess(ReferenceTypeName typ,
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 |
|
ReferenceTypeName |
getFieldType()
Returns the declaring type of the field |
|
void |
setFieldType(ReferenceTypeName t)
Sets the declaring type of the field |
|
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 StaticFieldAccess(ReferenceTypeName typ,
java.lang.String fln)
typ - the type on which this field access appliesfln - the field name
java.lang.IllegalArgumentException - if typ is null or fln is null
public StaticFieldAccess(ReferenceTypeName typ,
java.lang.String fln,
SourceInfo si)
typ - the type on which this field access appliesfln - the field name
java.lang.IllegalArgumentException - if typ is null or fln is null| Method Detail |
|---|
public ReferenceTypeName getFieldType()
public void setFieldType(ReferenceTypeName t)
java.lang.IllegalArgumentException - if t 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 | |||||||||