C
- The container typepublic class GrammarTransition<C extends Asn1Container> extends Object
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
Action<C> |
getAction() |
Enum<?> |
getCurrentState() |
Enum<?> |
getPreviousState() |
boolean |
hasAction()
Tells if the transition has an associated action.
|
String |
toString() |
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 tagpublic 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 tagpublic boolean hasAction()
true
if an action has been associated to the transitionpublic Enum<?> getCurrentState()
public Enum<?> getPreviousState()
Copyright © 2003–2018 The Apache Software Foundation. All rights reserved.