com.inxar.syntacs.automaton.pushdown
Class StandardAction

java.lang.Object
  |
  +--com.inxar.syntacs.automaton.pushdown.StandardAction
All Implemented Interfaces:
Action

public class StandardAction
extends Object
implements Action

Standard implementation of Action.


Fields inherited from interface org.inxar.syntacs.automaton.pushdown.Action
ACCEPT, ERROR, REDUCE, SHIFT
 
Constructor Summary
StandardAction()
          Constructs an error action with id=0, value=0, type=ERROR.
StandardAction(int type, int value)
          Creates a new Action with the given data.
 
Method Summary
 boolean equals(Object other)
           
 int getType()
          The type of this action, one of (ERROR|SHIFT|REDUCE|ACCEPT).
 int getValue()
          A generic container for additional action information.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StandardAction

public StandardAction(int type,
                      int value)
Creates a new Action with the given data.

StandardAction

public StandardAction()
Constructs an error action with id=0, value=0, type=ERROR.
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getType

public int getType()
Description copied from interface: Action
The type of this action, one of (ERROR|SHIFT|REDUCE|ACCEPT).
Specified by:
getType in interface Action

getValue

public int getValue()
Description copied from interface: Action
A generic container for additional action information.
Specified by:
getValue in interface Action

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object