|
||||||||||
| 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.ReferenceTypeName
public class ReferenceTypeName
This class represents the reference type nodes of the syntax tree
| Constructor Summary | |
|---|---|
ReferenceTypeName(IdentifierToken... ids)
|
|
ReferenceTypeName(java.util.List<? extends IdentifierToken> ids)
Initializes the type |
|
ReferenceTypeName(java.util.List<? extends IdentifierToken> ids,
SourceInfo si)
Initializes the type |
|
ReferenceTypeName(java.lang.String... names)
|
|
ReferenceTypeName(java.lang.String[] names,
SourceInfo si)
|
|
| Method Summary | ||
|---|---|---|
|
acceptVisitor(Visitor<T> visitor)
Allows a visitor to traverse the tree |
|
java.util.List<? extends IdentifierToken> |
getIdentifiers()
Returns the list of identifiers that make up this type |
|
java.lang.String |
getRepresentation()
Returns the representation of this type |
|
void |
setIdentifiers(java.util.List<? extends IdentifierToken> ids)
Sets the identifiers of this type |
|
java.lang.String |
toString()
Implementation of toString for use in unit testing |
|
protected java.lang.String |
toStringHelper()
|
|
| 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 ReferenceTypeName(java.util.List<? extends IdentifierToken> ids)
ids - the list of the tokens that compose the type name
java.lang.IllegalArgumentException - if ids is null or emptypublic ReferenceTypeName(IdentifierToken... ids)
public ReferenceTypeName(java.lang.String... names)
public ReferenceTypeName(java.lang.String[] names,
SourceInfo si)
public ReferenceTypeName(java.util.List<? extends IdentifierToken> ids,
SourceInfo si)
ids - the list of the tokens that compose the type name
java.lang.IllegalArgumentException - if ids is null or empty| Method Detail |
|---|
public java.lang.String getRepresentation()
public java.util.List<? extends IdentifierToken> getIdentifiers()
public void setIdentifiers(java.util.List<? extends IdentifierToken> ids)
java.lang.IllegalArgumentException - if ids is null or emptypublic <T> T acceptVisitor(Visitor<T> visitor)
acceptVisitor in class Nodevisitor - the visitor to acceptpublic java.lang.String toString()
toString in class java.lang.Objectprotected java.lang.String toStringHelper()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||