|
||||||||||
| 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.SimpleAllocation
public class SimpleAllocation
This class represents the regular allocation nodes of the syntax tree. Nodes are derived from syntax like "new Foo(x, y+3, z.method())"
| Constructor Summary | |
|---|---|
SimpleAllocation(Option<java.util.List<TypeName>> targs,
ReferenceTypeName tp,
java.util.List<? extends Expression> args)
Initializes the expression |
|
SimpleAllocation(Option<java.util.List<TypeName>> targs,
ReferenceTypeName tp,
java.util.List<? extends Expression> args,
SourceInfo si)
Initializes the expression |
|
SimpleAllocation(ReferenceTypeName tp,
java.util.List<? extends Expression> args)
Initializes the expression |
|
SimpleAllocation(ReferenceTypeName tp,
java.util.List<? extends Expression> args,
SourceInfo si)
Initializes the expression |
|
| Method Summary | ||
|---|---|---|
|
acceptVisitor(Visitor<T> visitor)
Allows a visitor to traverse the tree |
|
java.util.List<Expression> |
getArguments()
Returns the constructor arguments |
|
ReferenceTypeName |
getCreationType()
Returns the creation type |
|
Option<java.util.List<TypeName>> |
getTypeArgs()
|
|
void |
setArguments(java.util.List<? extends Expression> l)
Sets the constructor arguments. |
|
void |
setCreationType(ReferenceTypeName t)
Sets the creation type |
|
void |
setTypeArgs(java.util.List<TypeName> targs)
|
|
void |
setTypeArgs(Option<java.util.List<TypeName>> targs)
|
|
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 SimpleAllocation(Option<java.util.List<TypeName>> targs,
ReferenceTypeName tp,
java.util.List<? extends Expression> args)
tp - the type prefixargs - the arguments of the constructor
java.lang.IllegalArgumentException - if tp is null
public SimpleAllocation(ReferenceTypeName tp,
java.util.List<? extends Expression> args)
tp - the type prefixargs - the arguments of the constructor
java.lang.IllegalArgumentException - if tp is null
public SimpleAllocation(ReferenceTypeName tp,
java.util.List<? extends Expression> args,
SourceInfo si)
tp - the type prefixargs - the arguments of the constructor
java.lang.IllegalArgumentException - if tp is null
public SimpleAllocation(Option<java.util.List<TypeName>> targs,
ReferenceTypeName tp,
java.util.List<? extends Expression> args,
SourceInfo si)
tp - the type prefixargs - the arguments of the constructor
java.lang.IllegalArgumentException - if tp is null| Method Detail |
|---|
public Option<java.util.List<TypeName>> getTypeArgs()
public void setTypeArgs(java.util.List<TypeName> targs)
public void setTypeArgs(Option<java.util.List<TypeName>> targs)
public ReferenceTypeName getCreationType()
public void setCreationType(ReferenceTypeName t)
java.lang.IllegalArgumentException - if t is nullpublic java.util.List<Expression> getArguments()
public void setArguments(java.util.List<? extends Expression> l)
public <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 | |||||||||