|
||||||||||
| 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
public class InnerAllocation
This class represents the *inner class* allocation nodes of the syntax tree
| Field Summary |
|---|
| Fields inherited from interface koala.dynamicjava.tree.ExpressionContainer |
|---|
EXPRESSION |
| Constructor Summary | |
|---|---|
InnerAllocation(Expression exp,
Option<java.util.List<TypeName>> targs,
java.lang.String cn,
Option<java.util.List<TypeName>> ctargs,
java.util.List<? extends Expression> args)
Initializes the expression |
|
InnerAllocation(Expression exp,
Option<java.util.List<TypeName>> targs,
java.lang.String cn,
Option<java.util.List<TypeName>> ctargs,
java.util.List<? extends Expression> args,
SourceInfo si)
Initializes the expression |
|
InnerAllocation(Expression exp,
java.lang.String cn,
Option<java.util.List<TypeName>> ctargs,
java.util.List<? extends Expression> args)
Initializes the expression |
|
InnerAllocation(Expression exp,
java.lang.String cn,
Option<java.util.List<TypeName>> ctargs,
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. |
|
java.lang.String |
getClassName()
Returns the inner class name |
|
Option<java.util.List<TypeName>> |
getClassTypeArgs()
|
|
Expression |
getExpression()
Returns the outer class instance expression |
|
Option<java.util.List<TypeName>> |
getTypeArgs()
|
|
void |
setArguments(java.util.List<? extends Expression> l)
Sets the constructor arguments. |
|
void |
setClassName(java.lang.String cn)
Sets the inner class name |
|
void |
setClassTypeArgs(java.util.List<TypeName> ctargs)
|
|
void |
setClassTypeArgs(Option<java.util.List<TypeName>> ctargs)
|
|
void |
setExpression(Expression e)
Sets the outer class instance expression |
|
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 InnerAllocation(Expression exp,
Option<java.util.List<TypeName>> targs,
java.lang.String cn,
Option<java.util.List<TypeName>> ctargs,
java.util.List<? extends Expression> args)
exp - the outer objecttargs - the constructor's type argumentscn - the inner class namectargs - the inner class's type argumentsargs - the arguments of the constructor. null if no arguments.
java.lang.IllegalArgumentException - if exp is null or tp is null
public InnerAllocation(Expression exp,
java.lang.String cn,
Option<java.util.List<TypeName>> ctargs,
java.util.List<? extends Expression> args)
exp - the outer objectcn - the inner class namectargs - the inner class's type argumentsargs - the arguments of the constructor. null if no arguments.
java.lang.IllegalArgumentException - if exp is null or tp is null
public InnerAllocation(Expression exp,
java.lang.String cn,
Option<java.util.List<TypeName>> ctargs,
java.util.List<? extends Expression> args,
SourceInfo si)
exp - the outer objectcn - the inner class namectargs - the inner class's type argumentsargs - the arguments of the constructor. null if no arguments.
java.lang.IllegalArgumentException - if exp is null or cn is null
public InnerAllocation(Expression exp,
Option<java.util.List<TypeName>> targs,
java.lang.String cn,
Option<java.util.List<TypeName>> ctargs,
java.util.List<? extends Expression> args,
SourceInfo si)
exp - the outer objecttargs - the constructor type argumentscn - the inner class namectargs - the inner class's type argumentsargs - the arguments of the constructor. null if no arguments.
java.lang.IllegalArgumentException - if exp is null or cn 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 Option<java.util.List<TypeName>> getTypeArgs()
public void setTypeArgs(java.util.List<TypeName> targs)
public void setTypeArgs(Option<java.util.List<TypeName>> targs)
public java.lang.String getClassName()
public void setClassName(java.lang.String cn)
java.lang.IllegalArgumentException - if cn is nullpublic Option<java.util.List<TypeName>> getClassTypeArgs()
public void setClassTypeArgs(java.util.List<TypeName> ctargs)
public void setClassTypeArgs(Option<java.util.List<TypeName>> ctargs)
public 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 | |||||||||