public class GrammarTransition<C extends Asn1Container>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private Action<C> |
action
The action associated to the transition
|
private java.lang.Enum<?> |
currentState
The current state
|
private int |
currentTag
The current tag
|
private java.lang.Enum<?> |
previousState
The previous state
|
| Constructor and Description |
|---|
GrammarTransition(java.lang.Enum<?> previousState,
java.lang.Enum<?> currentState,
int currentTag)
Creates a new GrammarTransition object.
|
GrammarTransition(java.lang.Enum<?> previousState,
java.lang.Enum<?> currentState,
int currentTag,
Action<C> action)
Creates a new GrammarTransition object.
|
GrammarTransition(java.lang.Enum<?> previousState,
java.lang.Enum<?> currentState,
UniversalTag currentTag)
Creates a new GrammarTransition object.
|
GrammarTransition(java.lang.Enum<?> previousState,
java.lang.Enum<?> currentState,
UniversalTag currentTag,
Action<C> action)
Creates a new GrammarTransition object.
|
| Modifier and Type | Method and Description |
|---|---|
Action<C> |
getAction() |
java.lang.Enum<?> |
getCurrentState() |
java.lang.Enum<?> |
getPreviousState() |
boolean |
hasAction()
Tells if the transition has an associated action.
|
java.lang.String |
toString() |
private Action<C extends Asn1Container> action
private java.lang.Enum<?> previousState
private java.lang.Enum<?> currentState
private int currentTag
public GrammarTransition(java.lang.Enum<?> previousState,
java.lang.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(java.lang.Enum<?> previousState,
java.lang.Enum<?> currentState,
int currentTag)
previousState - the previous statecurrentState - The current statecurrentTag - the current TLV's tagpublic GrammarTransition(java.lang.Enum<?> previousState,
java.lang.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(java.lang.Enum<?> previousState,
java.lang.Enum<?> currentState,
UniversalTag currentTag)
previousState - the previous statecurrentState - The current statecurrentTag - the current TLV's tagpublic boolean hasAction()
true if an action has been associated to the transitionpublic java.lang.Enum<?> getCurrentState()
public java.lang.Enum<?> getPreviousState()
public java.lang.String toString()
toString in class java.lang.Object