|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.asn1new.ber.grammar.GrammarTransition
public class GrammarTransition
Define a transition between two states of a grammar. It stores the next state, and the action to execute while transiting.
| Field Summary | |
|---|---|
private GrammarAction |
action
The action associated to the transition |
private int |
currentState
The current state |
private int |
nextState
The next state in the grammar |
| Constructor Summary | |
|---|---|
GrammarTransition(int currentState,
int nextState,
GrammarAction action)
Creates a new GrammarTransition object. |
|
| Method Summary | |
|---|---|
GrammarAction |
getAction()
|
int |
getNextState()
|
boolean |
hasAction()
Tells if the transition has an associated action. |
java.lang.String |
toString(int grammar,
IStates statesEnum)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int nextState
private GrammarAction action
private int currentState
| Constructor Detail |
|---|
public GrammarTransition(int currentState,
int nextState,
GrammarAction action)
currentState - The current transitionnextState - The target stateaction - The action to execute. It could be null.| Method Detail |
|---|
public int getNextState()
public boolean hasAction()
true if an action has been asociated to the transitionpublic GrammarAction getAction()
public java.lang.String toString(int grammar,
IStates statesEnum)
grammar - The grammar which state we want a String from
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||