edu.usc.alfa.xalfa.ast
Class NamedNode

java.lang.Object
  extended byedu.usc.alfa.xalfa.ast.Node
      extended byedu.usc.alfa.xalfa.ast.NamedNode
Direct Known Subclasses:
CompositionNode, ConstituentNode, DatumNode, DuctNode, PortalGroupNode, PortalNode

public abstract class NamedNode
extends Node

This class is a simple addition to the abstract node class, and provides a textual name, used to manually identify xAlfa objects.


Constructor Summary
NamedNode(java.lang.String ID, java.lang.String name)
          Creates a new instance of NamedNode
 
Method Summary
 java.lang.String getName()
           
 
Methods inherited from class edu.usc.alfa.xalfa.ast.Node
accept, equals, getID, getTabs, hashCode, nodeSequenceString, nodeSequenceString, toDebugString, toDebugString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedNode

public NamedNode(java.lang.String ID,
                 java.lang.String name)
Creates a new instance of NamedNode

Parameters:
ID - a unique identifier for the node
name - used to manually identify this node
Method Detail

getName

public final java.lang.String getName()
Returns:
String the name of this node