|
||||||||||
| 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.UnaryExpression
koala.dynamicjava.tree.CastExpression
public class CastExpression
This class represents the cast expression nodes of the syntax tree
| Field Summary | |
|---|---|
static java.lang.String |
TARGET_TYPE
|
| Fields inherited from interface koala.dynamicjava.tree.ExpressionContainer |
|---|
EXPRESSION |
| Constructor Summary | |
|---|---|
CastExpression(TypeName tt,
Expression exp)
Initializes the expression |
|
CastExpression(TypeName tt,
Expression exp,
SourceInfo si)
Initializes the expression |
|
| Method Summary | ||
|---|---|---|
|
acceptVisitor(Visitor<T> visitor)
Allows a visitor to traverse the tree |
|
TypeName |
getTargetType()
Returns the target type |
|
void |
setTargetType(TypeName t)
Sets the target type |
|
java.lang.String |
toString()
Implementation of toString for use in unit testing |
|
| Methods inherited from class koala.dynamicjava.tree.UnaryExpression |
|---|
getExpression, setExpression |
| 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 |
| Field Detail |
|---|
public static final java.lang.String TARGET_TYPE
| Constructor Detail |
|---|
public CastExpression(TypeName tt,
Expression exp)
tt - the target typeexp - the casted expression
java.lang.IllegalArgumentException - if tt is null or exp is null
public CastExpression(TypeName tt,
Expression exp,
SourceInfo si)
tt - the target typeexp - the casted expression
java.lang.IllegalArgumentException - if tt is null or exp is null| Method Detail |
|---|
public TypeName getTargetType()
public void setTargetType(TypeName 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 UnaryExpression
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||