koala.dynamicjava.tree
Class ReferenceTypeName

java.lang.Object
  extended by koala.dynamicjava.tree.Node
      extended by koala.dynamicjava.tree.TypeName
          extended by koala.dynamicjava.tree.ReferenceTypeName
All Implemented Interfaces:
SourceInfo.Wrapper
Direct Known Subclasses:
GenericReferenceTypeName, HookTypeName, TypeParameter

public class ReferenceTypeName
extends TypeName

This class represents the reference type nodes of the syntax tree

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

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

ReferenceTypeName

public ReferenceTypeName(List<? extends IdentifierToken> ids)
Initializes the type

Parameters:
ids - the list of the tokens that compose the type name
Throws:
IllegalArgumentException - if ids is null or empty

ReferenceTypeName

public ReferenceTypeName(IdentifierToken... ids)

ReferenceTypeName

public ReferenceTypeName(String... names)

ReferenceTypeName

public ReferenceTypeName(String[] names,
                         SourceInfo si)

ReferenceTypeName

public ReferenceTypeName(List<? extends IdentifierToken> ids,
                         SourceInfo si)
Initializes the type

Parameters:
ids - the list of the tokens that compose the type name
Throws:
IllegalArgumentException - if ids is null or empty
Method Detail

getRepresentation

public String getRepresentation()
Returns the representation of this type


getIdentifiers

public List<? extends IdentifierToken> getIdentifiers()
Returns the list of identifiers that make up this type


setIdentifiers

public void setIdentifiers(List<? extends IdentifierToken> ids)
Sets the identifiers of this type

Throws:
IllegalArgumentException - if ids is null or empty

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 String toString()
Implementation of toString for use in unit testing

Overrides:
toString in class Object

toStringHelper

protected String toStringHelper()