xtc.parser
Class Name

java.lang.Object
  extended by xtc.tree.Node
      extended by xtc.parser.Name
All Implemented Interfaces:
java.lang.Iterable<java.lang.Object>, Locatable
Direct Known Subclasses:
ModuleName, SequenceName

public class Name
extends Node

The superclass of all names.

Version:
$Revision: 1.2 $
Author:
Robert Grimm

Field Summary
 java.lang.String name
          The name.
 
Constructor Summary
Name(java.lang.String name)
          Create a new name.
 
Method Summary
 int hashCode()
           
 java.lang.String toString()
          Return a human readable representation of this node.
 
Methods inherited from class xtc.tree.Node
add, add, addAll, addAll, addAll, addAll, addAllTo, addNode, contains, get, getBoolean, getBooleanProperty, getGeneric, getList, getLocation, getName, getNode, getProperty, getString, getStringProperty, getTokenText, hasLocation, hasName, hasProperty, hasTraversal, hasVariable, indexOf, isAnnotation, isEmpty, isGeneric, isList, isToken, iterator, lastIndexOf, properties, remove, removeProperty, set, setLocation, setLocation, setProperty, size, strip, toAnnotation, toList, toToken, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public final java.lang.String name
The name.

Constructor Detail

Name

public Name(java.lang.String name)
Create a new name.

Parameters:
name - The name.
Method Detail

hashCode

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

toString

public java.lang.String toString()
Description copied from class: Node
Return a human readable representation of this node. The default implementation creates a new string builder, writes this node to the builder, and then returns the corresponding string. Subclasses should typically override Node.write(Appendable).

Overrides:
toString in class Node
Returns:
A human readable representation.


Copyright © 2012. All Rights Reserved.