|
||||||||||
| 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.TypeName
koala.dynamicjava.tree.ArrayTypeName
public class ArrayTypeName
This class represents the array type nodes of the syntax tree
| Constructor Summary | |
|---|---|
ArrayTypeName(TypeName et,
int dim,
boolean varg)
Initializes the type |
|
ArrayTypeName(TypeName et,
int dim,
boolean varg,
SourceInfo si)
Initializes the type |
|
| Method Summary | ||
|---|---|---|
|
acceptVisitor(Visitor<T> visitor)
Allows a visitor to traverse the tree |
|
TypeName |
getElementType()
Returns the type of the elements of the arrays represented by this type |
|
boolean |
isVararg()
|
|
void |
setElementType(TypeName t)
Sets the type of the elements of the arrays represented by this 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 ArrayTypeName(TypeName et,
int dim,
boolean varg)
et - the element typedim - the dimension of the arrays represented by this type (> 0)
java.lang.IllegalArgumentException - if et is null or dim < 1
public ArrayTypeName(TypeName et,
int dim,
boolean varg,
SourceInfo si)
et - the element typedim - the dimension of the arrays represented by this type (> 0)
java.lang.IllegalArgumentException - if et is null or dim < 1| Method Detail |
|---|
public TypeName getElementType()
public void setElementType(TypeName t)
java.lang.IllegalArgumentException - if t is nullpublic boolean isVararg()
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 | |||||||||