|
||||||||||
| 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(List<? extends Expression> cells)
Initializes the expression |
|
ArrayInitializer(List<? extends Expression> cells,
SourceInfo si)
Initializes the expression |
|
| Method Summary | ||
|---|---|---|
|
acceptVisitor(Visitor<T> visitor)
Allows a visitor to traverse the tree |
|
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(List<? extends Expression> l)
Sets the list of cell initialization expressions |
|
void |
setElementType(TypeName t)
Sets the element type. |
|
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(List<? extends Expression> cells)
cells - the list of initialized cells
IllegalArgumentException - if cells is null
public ArrayInitializer(List<? extends Expression> cells,
SourceInfo si)
cells - the list of initialized cells
IllegalArgumentException - if cells is null| Method Detail |
|---|
public List<Expression> getCells()
public void setCells(List<? extends Expression> l)
IllegalArgumentException - if l is nullpublic TypeName getElementType()
null if it's not set
public void setElementType(TypeName t)
IllegalArgumentException - if t is nullpublic <T> T acceptVisitor(Visitor<T> visitor)
acceptVisitor in class Nodevisitor - the visitor to acceptpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||