|
||||||||||
| 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
koala.dynamicjava.tree.AnonymousAllocation
public class AnonymousAllocation
This class represents the anonymous class allocation nodes of the syntax tree. Nodes are derived from syntax like "new Foo(x, y+3, z.method()) { void bar() {} }"
| Constructor Summary | |
|---|---|
AnonymousAllocation(Option<java.util.List<TypeName>> targs,
ReferenceTypeName tp,
java.util.List<? extends Expression> args,
java.util.List<Node> memb)
Initializes the expression |
|
AnonymousAllocation(Option<java.util.List<TypeName>> targs,
ReferenceTypeName tp,
java.util.List<? extends Expression> args,
java.util.List<Node> memb,
SourceInfo si)
Initializes the expression |
|
AnonymousAllocation(ReferenceTypeName tp,
java.util.List<? extends Expression> args,
java.util.List<Node> memb)
Initializes the expression |
|
AnonymousAllocation(ReferenceTypeName tp,
java.util.List<? extends Expression> args,
java.util.List<Node> memb,
SourceInfo si)
Initializes the expression |
|
| Method Summary | ||
|---|---|---|
|
acceptVisitor(Visitor<T> visitor)
Allows a visitor to traverse the tree |
|
java.util.List<Node> |
getMembers()
Returns the members of the anonymous class |
|
void |
setMembers(java.util.List<Node> l)
Sets the members of the anonymous class |
|
java.lang.String |
toString()
Implementation of toString for use in unit testing |
|
| Methods inherited from class koala.dynamicjava.tree.SimpleAllocation |
|---|
getArguments, getCreationType, getTypeArgs, setArguments, setCreationType, setTypeArgs, setTypeArgs |
| 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 AnonymousAllocation(ReferenceTypeName tp,
java.util.List<? extends Expression> args,
java.util.List<Node> memb)
tp - the type prefixargs - the arguments of the constructor. Can be null.memb - the members of the class
java.lang.IllegalArgumentException - if tp is null or memb is null
public AnonymousAllocation(Option<java.util.List<TypeName>> targs,
ReferenceTypeName tp,
java.util.List<? extends Expression> args,
java.util.List<Node> memb)
tp - the type prefixargs - the arguments of the constructor. Can be null.memb - the members of the class
java.lang.IllegalArgumentException - if tp is null or memb is null
public AnonymousAllocation(ReferenceTypeName tp,
java.util.List<? extends Expression> args,
java.util.List<Node> memb,
SourceInfo si)
tp - the type prefixargs - the arguments of the constructor. null if no arguments.memb - the members of the class
java.lang.IllegalArgumentException - if tp is null or memb is null
public AnonymousAllocation(Option<java.util.List<TypeName>> targs,
ReferenceTypeName tp,
java.util.List<? extends Expression> args,
java.util.List<Node> memb,
SourceInfo si)
tp - the type prefixargs - the arguments of the constructor. null if no arguments.memb - the members of the class
java.lang.IllegalArgumentException - if tp is null or memb is null| Method Detail |
|---|
public java.util.List<Node> getMembers()
public void setMembers(java.util.List<Node> l)
java.lang.IllegalArgumentException - if t is nullpublic <T> T acceptVisitor(Visitor<T> visitor)
acceptVisitor in class SimpleAllocationvisitor - the visitor to acceptpublic java.lang.String toString()
toString in class SimpleAllocation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||