|
||||||||||
| 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.InnerAllocation
koala.dynamicjava.tree.AnonymousInnerAllocation
public class AnonymousInnerAllocation
This class represents the anonymous allocation nodes that extend an inner class. Nodes are derived from syntax like "a.makeOuter().new Foo(x, y+3, z.method()) { void bar() {} }"
| Field Summary | |
|---|---|
static java.lang.String |
MEMBERS
The members property name |
| Fields inherited from interface koala.dynamicjava.tree.ExpressionContainer |
|---|
EXPRESSION |
| Constructor Summary | |
|---|---|
AnonymousInnerAllocation(Expression exp,
Option<java.util.List<TypeName>> targs,
java.lang.String cn,
Option<java.util.List<TypeName>> ctargs,
java.util.List<? extends Expression> args,
java.util.List<Node> memb)
Initializes the expression |
|
AnonymousInnerAllocation(Expression exp,
Option<java.util.List<TypeName>> targs,
java.lang.String cn,
Option<java.util.List<TypeName>> ctargs,
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.InnerAllocation |
|---|
getArguments, getClassName, getClassTypeArgs, getExpression, getTypeArgs, setArguments, setClassName, setClassTypeArgs, setClassTypeArgs, setExpression, 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 |
| Field Detail |
|---|
public static final java.lang.String MEMBERS
| Constructor Detail |
|---|
public AnonymousInnerAllocation(Expression exp,
Option<java.util.List<TypeName>> targs,
java.lang.String cn,
Option<java.util.List<TypeName>> ctargs,
java.util.List<? extends Expression> args,
java.util.List<Node> memb)
exp - the outer objecttargs - constructor type argumentscn - the inner class namectargs - class type argumentsargs - the arguments of the constructor. Can be null.memb - the members of the class
public AnonymousInnerAllocation(Expression exp,
Option<java.util.List<TypeName>> targs,
java.lang.String cn,
Option<java.util.List<TypeName>> ctargs,
java.util.List<? extends Expression> args,
java.util.List<Node> memb,
SourceInfo si)
exp - the outer objecttargs - constructor type argumentscn - the inner class namectargs - class type argumentsargs - the arguments of the constructor. Can be null.memb - the members of the class| Method Detail |
|---|
public java.util.List<Node> getMembers()
public void setMembers(java.util.List<Node> l)
java.lang.IllegalArgumentException - if l is nullpublic <T> T acceptVisitor(Visitor<T> visitor)
acceptVisitor in class InnerAllocationvisitor - the visitor to acceptpublic java.lang.String toString()
toString in class InnerAllocation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||