org.teatrove.tea.parsetree
Class Name

java.lang.Object
  extended by org.teatrove.tea.parsetree.Node
      extended by org.teatrove.tea.parsetree.Name
All Implemented Interfaces:
Serializable, Cloneable
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.

Author:
Brian S O'Neill
See Also:
Serialized Form

Constructor Summary
Name(SourceInfo info, String name)
           
 
Method Summary
 Object accept(NodeVisitor visitor)
          Every subclass of Node must override this method with the following: return visitor.visit(this).
 boolean equals(Object other)
           
 String getName()
           
 int hashCode()
           
 
Methods inherited from class org.teatrove.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,
            String name)
Method Detail

accept

public Object accept(NodeVisitor visitor)
Description copied from class: Node
Every subclass of Node must override this method with the following: return visitor.visit(this).

Specified by:
accept in class Node
Parameters:
visitor - A visitor of this Node
Returns:
Node The Node returned by the visitor
See Also:
NodeVisitor

getName

public String getName()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object


Copyright © 1997-2012 TeaTrove.org. All Rights Reserved.