koala.dynamicjava.tree
Class AmbiguousName

java.lang.Object
  extended by koala.dynamicjava.tree.Node
      extended by koala.dynamicjava.tree.Expression
          extended by koala.dynamicjava.tree.PrimaryExpression
              extended by koala.dynamicjava.tree.AmbiguousName
All Implemented Interfaces:
LeftHandSide, SourceInfo.Wrapper

public class AmbiguousName
extends PrimaryExpression
implements LeftHandSide

This class represents the qualified name nodes of the syntax tree

Version:
1.0 - 1999/04/24
Author:
Stephane Hillion

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
<T> T
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

AmbiguousName

public AmbiguousName(java.util.List<IdentifierToken> ids)
Creates a new qualified name

Parameters:
ids - the identifiers (IdentifierTokens) that compose this name
Throws:
java.lang.IllegalArgumentException - if ids is null

AmbiguousName

public AmbiguousName(IdentifierToken... ids)

AmbiguousName

public AmbiguousName(java.lang.String... ids)

AmbiguousName

public AmbiguousName(java.util.List<IdentifierToken> ids,
                     SourceInfo si)
Creates a new qualified name

Parameters:
ids - the identifiers (IdentifierTokens) that compose this name
Throws:
java.lang.IllegalArgumentException - if ids is null
Method Detail

getRepresentation

public java.lang.String getRepresentation()
Returns the representation of this object


getIdentifiers

public java.util.List<IdentifierToken> getIdentifiers()
Returns the identifiers that compose this name


setIdentifier

public void setIdentifier(java.util.List<IdentifierToken> l)
Sets the identifiers that compose this name. Update representation

Throws:
java.lang.IllegalArgumentException - if l is null

acceptVisitor

public <T> T acceptVisitor(Visitor<T> visitor)
Allows a visitor to traverse the tree

Specified by:
acceptVisitor in class Node
Parameters:
visitor - the visitor to accept

toString

public java.lang.String toString()
Implementation of toString for use in unit testing

Overrides:
toString in class java.lang.Object