|
||||||||||
| 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.PrimaryExpression
koala.dynamicjava.tree.AmbiguousName
public class AmbiguousName
This class represents the qualified name nodes of the syntax tree
| Constructor Summary | |
|---|---|
AmbiguousName(IdentifierToken... ids)
|
|
AmbiguousName(java.util.List<IdentifierToken> ids)
Creates a new qualified name |
|
AmbiguousName(java.util.List<IdentifierToken> ids,
SourceInfo si)
Creates a new qualified name |
|
AmbiguousName(java.lang.String... ids)
|
|
| Method Summary | ||
|---|---|---|
|
acceptVisitor(Visitor<T> visitor)
Allows a visitor to traverse the tree |
|
java.util.List<IdentifierToken> |
getIdentifiers()
Returns the identifiers that compose this name |
|
java.lang.String |
getRepresentation()
Returns the representation of this object |
|
void |
setIdentifier(java.util.List<IdentifierToken> l)
Sets the identifiers that compose this name. |
|
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 AmbiguousName(java.util.List<IdentifierToken> ids)
ids - the identifiers (IdentifierTokens) that compose this name
java.lang.IllegalArgumentException - if ids is nullpublic AmbiguousName(IdentifierToken... ids)
public AmbiguousName(java.lang.String... ids)
public AmbiguousName(java.util.List<IdentifierToken> ids,
SourceInfo si)
ids - the identifiers (IdentifierTokens) that compose this name
java.lang.IllegalArgumentException - if ids is null| Method Detail |
|---|
public java.lang.String getRepresentation()
public java.util.List<IdentifierToken> getIdentifiers()
public void setIdentifier(java.util.List<IdentifierToken> l)
java.lang.IllegalArgumentException - if l 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 | |||||||||