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