koala.dynamicjava.tree.tiger
Class GenericReferenceTypeName

java.lang.Object
  extended by koala.dynamicjava.tree.Node
      extended by koala.dynamicjava.tree.TypeName
          extended by koala.dynamicjava.tree.ReferenceTypeName
              extended by koala.dynamicjava.tree.tiger.GenericReferenceTypeName
All Implemented Interfaces:
SourceInfo.Wrapper

public class GenericReferenceTypeName
extends ReferenceTypeName

This class represents a generic reference type


Constructor Summary
GenericReferenceTypeName(java.util.List<? extends IdentifierToken> ids, java.util.List<? extends java.util.List<? extends TypeName>> typeArgs)
          Initializes the type
GenericReferenceTypeName(java.util.List<? extends IdentifierToken> ids, java.util.List<? extends java.util.List<? extends TypeName>> typeArgs, SourceInfo si)
          Initializes the type
 
Method Summary
<T> T
acceptVisitor(Visitor<T> visitor)
          Allows a visitor to traverse the tree
 java.util.List<? extends java.util.List<? extends TypeName>> getTypeArguments()
           
 java.lang.String toString()
          Implementation of toString for use in unit testing
 java.lang.String toStringHelper()
           
 
Methods inherited from class koala.dynamicjava.tree.ReferenceTypeName
getIdentifiers, getRepresentation, setIdentifiers
 
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

GenericReferenceTypeName

public GenericReferenceTypeName(java.util.List<? extends IdentifierToken> ids,
                                java.util.List<? extends java.util.List<? extends TypeName>> typeArgs)
Initializes the type

Parameters:
ids - the list of the tokens that compose the type name
typeArgs - the type arguments
Throws:
java.lang.IllegalArgumentException - if ids is null

GenericReferenceTypeName

public GenericReferenceTypeName(java.util.List<? extends IdentifierToken> ids,
                                java.util.List<? extends java.util.List<? extends TypeName>> typeArgs,
                                SourceInfo si)
Initializes the type

Parameters:
ids - the list of the tokens that compose the type name
Throws:
java.lang.IllegalArgumentException - if ids is null
Method Detail

getTypeArguments

public java.util.List<? extends java.util.List<? extends TypeName>> getTypeArguments()

acceptVisitor

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

Overrides:
acceptVisitor in class ReferenceTypeName
Parameters:
visitor - the visitor to accept

toString

public java.lang.String toString()
Description copied from class: ReferenceTypeName
Implementation of toString for use in unit testing

Overrides:
toString in class ReferenceTypeName

toStringHelper

public java.lang.String toStringHelper()
Overrides:
toStringHelper in class ReferenceTypeName