net.sourceforge.chaperon.model.symbol
Class Terminal

java.lang.Object
  extended bynet.sourceforge.chaperon.model.symbol.Symbol
      extended bynet.sourceforge.chaperon.model.symbol.Terminal
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
EndOfFile, Error

public class Terminal
extends Symbol

This class represent a terminal symbol.

Version:
CVS $Id: Terminal.java,v 1.6 2004/01/17 16:50:09 benedikta Exp $
Author:
Stephan Michels
See Also:
Serialized Form

Constructor Summary
Terminal()
           
Terminal(java.lang.String name)
          Create a nonterminal symbol.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares the with another symbol.
 int hashCode()
          Returns a hash code value for the symbol.
 
Methods inherited from class net.sourceforge.chaperon.model.symbol.Symbol
getName, setName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Terminal

public Terminal(java.lang.String name)
Create a nonterminal symbol.

Parameters:
name - Name of the symbol.

Terminal

public Terminal()
Method Detail

hashCode

public int hashCode()
Returns a hash code value for the symbol.

Overrides:
hashCode in class Symbol
Returns:
Hash code value for the symbol.

equals

public boolean equals(java.lang.Object o)
Compares the with another symbol.

Overrides:
equals in class Symbol
Parameters:
o - Another object
Returns:
True, if the symbol are equal.


Copyright ? 2003 Chaperon project. All Rights Reserved.