|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.asn1.ber.grammar.GrammarTransition<C>
public class GrammarTransition<C extends Asn1Container>
Define a transition between two states of a grammar. It stores the next state, and the action to execute while executing the transition.
| Constructor Summary | |
|---|---|
GrammarTransition(Enum<?> previousState,
Enum<?> currentState,
int currentTag)
Creates a new GrammarTransition object. |
|
GrammarTransition(Enum<?> previousState,
Enum<?> currentState,
int currentTag,
Action<C> action)
Creates a new GrammarTransition object. |
|
GrammarTransition(Enum<?> previousState,
Enum<?> currentState,
UniversalTag currentTag)
Creates a new GrammarTransition object. |
|
GrammarTransition(Enum<?> previousState,
Enum<?> currentState,
UniversalTag currentTag,
Action<C> action)
Creates a new GrammarTransition object. |
|
| Method Summary | |
|---|---|
Action<C> |
getAction()
|
Enum<?> |
getCurrentState()
|
Enum<?> |
getPreviousState()
|
boolean |
hasAction()
Tells if the transition has an associated action. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GrammarTransition(Enum<?> previousState,
Enum<?> currentState,
int currentTag,
Action<C> action)
previousState - the previous statecurrentState - The current statecurrentTag - the current TLV's tagaction - The action to execute. It could be null.
public GrammarTransition(Enum<?> previousState,
Enum<?> currentState,
int currentTag)
previousState - the previous statecurrentState - The current statecurrentTag - the current TLV's tag
public GrammarTransition(Enum<?> previousState,
Enum<?> currentState,
UniversalTag currentTag,
Action<C> action)
previousState - the previous statecurrentState - The current statecurrentTag - the current TLV's tagaction - The action to execute. It could be null.
public GrammarTransition(Enum<?> previousState,
Enum<?> currentState,
UniversalTag currentTag)
previousState - the previous statecurrentState - The current statecurrentTag - the current TLV's tag| Method Detail |
|---|
public boolean hasAction()
true if an action has been associated to the transitionpublic Action<C> getAction()
public Enum<?> getCurrentState()
public Enum<?> getPreviousState()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||