|
||||||||||
| 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.InstanceOfExpression
public class InstanceOfExpression
This class represents the instanceof expression nodes of the syntax tree
| Field Summary |
|---|
| Fields inherited from interface koala.dynamicjava.tree.ExpressionContainer |
|---|
EXPRESSION |
| Constructor Summary | |
|---|---|
InstanceOfExpression(Expression exp,
TypeName t)
Initializes the expression |
|
InstanceOfExpression(Expression exp,
TypeName t,
SourceInfo si)
Initializes the expression |
|
| Method Summary | ||
|---|---|---|
|
acceptVisitor(Visitor<T> visitor)
Allows a visitor to traverse the tree |
|
Expression |
getExpression()
Returns the expression to check |
|
TypeName |
getReferenceType()
Returns the type to check |
|
void |
setExpression(Expression e)
Sets the expression to check |
|
void |
setReferenceType(TypeName t)
Sets the type to check |
|
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 InstanceOfExpression(Expression exp,
TypeName t)
exp - the expression to testt - the type to check
java.lang.IllegalArgumentException - if exp is null or t is null
public InstanceOfExpression(Expression exp,
TypeName t,
SourceInfo si)
exp - the expression to testt - the type to check
java.lang.IllegalArgumentException - if exp is null or t 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 TypeName getReferenceType()
public void setReferenceType(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 java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||