com.go.tea.parsetree
Class Name

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

public class Name
extends Node

A Name just associates a String with a SourceInfo object. Names are usually restricted to only containing Java identifier characters and '.' characters.

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

Constructor Summary
Name(SourceInfo info, java.lang.String name)
           
 
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)
           
 java.lang.String getName()
           
 int hashCode()
           
 
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

Name

public Name(SourceInfo info,
            java.lang.String name)
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 Node
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

getName

public java.lang.String getName()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

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