|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.dsmlv2.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.
| Constructor Summary | |
|---|---|
GrammarTransition(Enum<Dsmlv2StatesEnum> currentState,
Enum<Dsmlv2StatesEnum> nextState,
GrammarAction action)
Creates a new GrammarTransition object. |
|
| Method Summary | |
|---|---|
GrammarAction |
getAction()
Gets the action associated with the transition |
Enum<Dsmlv2StatesEnum> |
getNextState()
Gets the target state |
boolean |
hasAction()
Tells if the transition has an associated action. |
String |
toString(int grammar,
Enum<Dsmlv2StatesEnum> statesEnum)
Returns a representation of the transition as a string |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GrammarTransition(Enum<Dsmlv2StatesEnum> currentState,
Enum<Dsmlv2StatesEnum> nextState,
GrammarAction action)
currentState - The current transitionnextState - The target stateaction - The action to execute. It could be null.| Method Detail |
|---|
public Enum<Dsmlv2StatesEnum> getNextState()
public boolean hasAction()
true if an action has been associated to the transitionpublic GrammarAction getAction()
public String toString(int grammar,
Enum<Dsmlv2StatesEnum> statesEnum)
grammar - the grammar which state we want a String fromstatesEnum - the states enum that contains the states' names
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||