net.sourceforge.chaperon.model.symbol
Class Nonterminal

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

public class Nonterminal
extends Symbol

This class represent a nonterminal symbol.

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

Constructor Summary
Nonterminal()
           
Nonterminal(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

Nonterminal

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

Parameters:
name - Name of the symbol.

Nonterminal

public Nonterminal()
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.