org.teatrove.tea.parsetree
Class Name
java.lang.Object
org.teatrove.tea.parsetree.Node
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
Name
public Name(SourceInfo info,
String name)
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.