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
.
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. |
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
.
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