com.go.tea.parsetree
Class TypeName

java.lang.Object
  |
  +--com.go.tea.parsetree.Node
        |
        +--com.go.tea.parsetree.Name
              |
              +--com.go.tea.parsetree.TypeName
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class TypeName
extends Name

Version:
13 , 9/07/00
Author:
Brian S O'Neill
See Also:
Serialized Form

Constructor Summary
TypeName(SourceInfo info, Name name)
           
TypeName(SourceInfo info, Name name, int dimensions)
           
TypeName(SourceInfo info, java.lang.String name)
           
TypeName(SourceInfo info, java.lang.String name, int dimensions)
           
TypeName(SourceInfo info, Type type)
           
 
Method Summary
 java.lang.Object accept(NodeVisitor visitor)
          Every subclass of Node must override this method with the following: return visitor.visit(this).
 boolean equals(java.lang.Object other)
           
 int getDimensions()
           
 Type getType()
           
 int hashCode()
           
 void setType(Type type)
           
 
Methods inherited from class com.go.tea.parsetree.Name
getName
 
Methods inherited from class com.go.tea.parsetree.Node
clone, getSourceInfo, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypeName

public TypeName(SourceInfo info,
                java.lang.String name)

TypeName

public TypeName(SourceInfo info,
                java.lang.String name,
                int dimensions)

TypeName

public TypeName(SourceInfo info,
                Name name)

TypeName

public TypeName(SourceInfo info,
                Name name,
                int dimensions)

TypeName

public TypeName(SourceInfo info,
                Type type)
Method Detail

accept

public java.lang.Object accept(NodeVisitor visitor)
Description copied from class: Node
Every subclass of Node must override this method with the following: return visitor.visit(this).
Overrides:
accept in class Name
Following copied from class: com.go.tea.parsetree.Node
Parameters:
visitor - A visitor of this Node
Returns:
Node The Node returned by the visitor
See Also:
NodeVisitor

getDimensions

public int getDimensions()

getType

public Type getType()

setType

public void setType(Type type)

hashCode

public int hashCode()
Overrides:
hashCode in class Name

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class Name