|
||||||||||
| 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.TypeExpression
public class TypeExpression
This class represents the type expression nodes of the syntax tree
| Constructor Summary | |
|---|---|
TypeExpression(TypeName t)
Initializes the expression |
|
TypeExpression(TypeName t,
SourceInfo si)
Initializes the expression |
|
| Method Summary | ||
|---|---|---|
|
acceptVisitor(Visitor<T> visitor)
Allows a visitor to traverse the tree |
|
TypeName |
getType()
Returns the type represented by this expression |
|
void |
setType(ReferenceTypeName t)
Sets the type |
|
java.lang.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 TypeExpression(TypeName t)
t - the type represented by this expression
java.lang.IllegalArgumentException - if t is null
public TypeExpression(TypeName t,
SourceInfo si)
t - the type represented by this expression
java.lang.IllegalArgumentException - if t is null| Method Detail |
|---|
public TypeName getType()
public void setType(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 | |||||||||