net.sourceforge.chaperon.model.grammar
Class Associativity

java.lang.Object
  extended bynet.sourceforge.chaperon.model.grammar.Associativity
All Implemented Interfaces:
java.io.Serializable

public class Associativity
extends java.lang.Object
implements java.io.Serializable

This class represents a associativity for a terminal of production.

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

Field Summary
static Associativity LEFT
          Left associativity
static Associativity NONASSOC
          Non associativity
static Associativity RIGHT
          Right associativity
 
Constructor Summary
Associativity(java.lang.String value)
          Create a new associativity object.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compare with another object.
 java.lang.String toString()
          Returns the String representation of this associativity
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LEFT

public static final Associativity LEFT
Left associativity


RIGHT

public static final Associativity RIGHT
Right associativity


NONASSOC

public static final Associativity NONASSOC
Non associativity

Constructor Detail

Associativity

public Associativity(java.lang.String value)
Create a new associativity object.

Parameters:
value - left | right | nonassoc are allowed
Method Detail

equals

public boolean equals(java.lang.Object o)
Compare with another object.

Parameters:
o - Other object
Returns:
True, if the associative object has the same associativity

toString

public java.lang.String toString()
Returns the String representation of this associativity

Returns:
String representation.


Copyright ? 2003 Chaperon project. All Rights Reserved.