org.metasyntactic.math.automata
Class LRParseTable.Action

java.lang.Object
  |
  +--org.metasyntactic.math.automata.LRParseTable.Action
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
LRParseTable.Accept, LRParseTable.Error, LRParseTable.Reduce, LRParseTable.Shift
Enclosing class:
LRParseTable

public abstract static class LRParseTable.Action
extends java.lang.Object
implements java.io.Serializable

Action is the parsing table entry for state sm and input ai, which can have one of four values:

  1. shift s, where s is a state,
  2. reduce by a grammar production A → B,
  3. accept, and
  4. error.

See Also:
Serialized Form

Field Summary
protected  java.lang.Object state
          The state this action points to
 
Constructor Summary
LRParseTable.Action()
           
 
Method Summary
abstract  boolean equals(java.lang.Object o)
           
abstract  int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

state

protected java.lang.Object state
The state this action points to

Constructor Detail

LRParseTable.Action

public LRParseTable.Action()
Method Detail

toString

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

hashCode

public abstract int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public abstract boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object