|
||||||||||
| 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.ConstructorCall
public class ConstructorCall
This class represents the constructor call nodes of the syntax tree
| Field Summary |
|---|
| Fields inherited from interface koala.dynamicjava.tree.ExpressionContainer |
|---|
EXPRESSION |
| Constructor Summary | |
|---|---|
ConstructorCall(Expression exp,
List<? extends Expression> args,
boolean sup)
Creates a new node |
|
ConstructorCall(Expression exp,
List<? extends Expression> args,
boolean sup,
SourceInfo si)
Creates a new node |
|
| Method Summary | ||
|---|---|---|
|
acceptVisitor(Visitor<T> visitor)
Allows a visitor to traverse the tree |
|
List<Expression> |
getArguments()
Returns the arguments |
|
Expression |
getExpression()
Returns the prefix expression if one, or null otherwise |
|
boolean |
isSuper()
Returns true is this invocation is a 'super' or a 'this' invocation |
|
void |
setArguments(List<? extends Expression> l)
Sets the arguments |
|
void |
setExpression(Expression e)
Sets the prefix expression |
|
void |
setSuper(boolean b)
Sets the super property |
|
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 ConstructorCall(Expression exp,
List<? extends Expression> args,
boolean sup)
exp - the prefix expressionargs - the arguments. null if there are no argument.sup - whether this invocation is 'super' or 'this'
public ConstructorCall(Expression exp,
List<? extends Expression> args,
boolean sup,
SourceInfo si)
exp - the prefix expressionargs - the arguments. null if there are no argument.sup - whether this invocation is 'super' or 'this'| Method Detail |
|---|
public Expression getExpression()
getExpression in interface ExpressionContainerpublic void setExpression(Expression e)
setExpression in interface ExpressionContainerpublic List<Expression> getArguments()
public void setArguments(List<? extends Expression> l)
public boolean isSuper()
public void setSuper(boolean b)
public <T> T acceptVisitor(Visitor<T> visitor)
acceptVisitor in class Nodevisitor - the visitor to acceptpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||