ppg.atoms
Class GrammarSymbol

java.lang.Object
  extended by ppg.atoms.GrammarPart
      extended by ppg.atoms.GrammarSymbol
All Implemented Interfaces:
Unparse, Equatable
Direct Known Subclasses:
Nonterminal, Terminal

public abstract class GrammarSymbol
extends GrammarPart
implements Equatable


Field Summary
protected  java.lang.String label
           
protected  java.lang.String name
           
 
Constructor Summary
GrammarSymbol()
           
 
Method Summary
 java.lang.String getName()
           
 java.lang.String toString()
           
 void unparse(CodeWriter cw)
          Write a human-readable representation of the parse tree
 
Methods inherited from class ppg.atoms.GrammarPart
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ppg.util.Equatable
equals
 

Field Detail

name

protected java.lang.String name

label

protected java.lang.String label
Constructor Detail

GrammarSymbol

public GrammarSymbol()
Method Detail

getName

public java.lang.String getName()

unparse

public void unparse(CodeWriter cw)
Description copied from interface: Unparse
Write a human-readable representation of the parse tree

Specified by:
unparse in interface Unparse

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object