net.sourceforge.chaperon.model.grammar
Class Error

java.lang.Object
  extended by net.sourceforge.chaperon.model.symbol.Symbol
      extended by net.sourceforge.chaperon.model.symbol.Terminal
          extended by net.sourceforge.chaperon.model.grammar.Error
All Implemented Interfaces:
java.io.Serializable

public class Error
extends Terminal

This symbol represents an error token

Version:
CVS $Id: Error.java,v 1.3 2003/12/09 19:55:52 benedikta Exp $
Author:
Stephan Michels
See Also:
Serialized Form

Field Summary
static Error instance
           
 
Constructor Summary
Error()
          Creates a symbol for an error token
 
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, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

instance

public static final Error instance
Constructor Detail

Error

public Error()
Creates a symbol for an error token

Method Detail

hashCode

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

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

equals

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

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


Copyright ? 2003 Chaperon project. All Rights Reserved.