|
||||||||||
| 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.ArrayInitializer
public class ArrayInitializer
This class represents the array initializer nodes of the syntax tree
| Constructor Summary | |
|---|---|
ArrayInitializer(java.util.List<? extends Expression> cells)
Initializes the expression |
|
ArrayInitializer(java.util.List<? extends Expression> cells,
SourceInfo si)
Initializes the expression |
|
| Method Summary | ||
|---|---|---|
|
acceptVisitor(Visitor<T> visitor)
Allows a visitor to traverse the tree |
|
java.util.List<Expression> |
getCells()
Returns the list of cell initialization expressions |
|
TypeName |
getElementType()
Returns the element type, or null if it's not set |
|
void |
setCells(java.util.List<? extends Expression> l)
Sets the list of cell initialization expressions |
|
void |
setElementType(TypeName t)
Sets the element type. |
|
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 ArrayInitializer(java.util.List<? extends Expression> cells)
cells - the list of initialized cells
java.lang.IllegalArgumentException - if cells is null
public ArrayInitializer(java.util.List<? extends Expression> cells,
SourceInfo si)
cells - the list of initialized cells
java.lang.IllegalArgumentException - if cells is null| Method Detail |
|---|
public java.util.List<Expression> getCells()
public void setCells(java.util.List<? extends Expression> l)
java.lang.IllegalArgumentException - if l is nullpublic TypeName getElementType()
null if it's not set
public void setElementType(TypeName t)
java.lang.IllegalArgumentException - if t is nullpublic <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 | |||||||||