koala.dynamicjava.tree.tiger
Class HookTypeName

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.HookTypeName
All Implemented Interfaces:
SourceInfo.Wrapper

public class HookTypeName
extends ReferenceTypeName

This class represents the HookTypeName (?) nodes of the syntax tree


Constructor Summary
HookTypeName(Option<TypeName> up, Option<TypeName> low)
          Initializes the type
HookTypeName(Option<TypeName> up, Option<TypeName> low, SourceInfo si)
          Initializes the type
 
Method Summary
<T> T
acceptVisitor(Visitor<T> visitor)
          Allows a visitor to traverse the tree
 Option<TypeName> getLowerBound()
           
 Option<TypeName> getUpperBound()
           
 java.lang.String toString()
          Implementation of toString for use in unit testing
protected  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

HookTypeName

public HookTypeName(Option<TypeName> up,
                    Option<TypeName> low)
Initializes the type

Parameters:
up - the upper bound
low - the lower bound
Throws:
java.lang.IllegalArgumentException - if type is null

HookTypeName

public HookTypeName(Option<TypeName> up,
                    Option<TypeName> low,
                    SourceInfo si)
Initializes the type

Parameters:
up - the upper bound
low - the lower bound
Throws:
java.lang.IllegalArgumentException - if type is null
Method Detail

getUpperBound

public Option<TypeName> getUpperBound()

getLowerBound

public Option<TypeName> getLowerBound()

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

Overrides:
toString in class ReferenceTypeName

toStringHelper

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