public class GrammarTransition extends Object
Constructor and Description |
---|
GrammarTransition(int previousState,
int currentState,
int currentTag,
IAction action)
Creates a new GrammarTransition object.
|
Modifier and Type | Method and Description |
---|---|
IAction |
getAction() |
int |
getCurrentState() |
int |
getPreviousState() |
boolean |
hasAction()
Tells if the transition has an associated action.
|
String |
toString(IStates statesEnum) |
public GrammarTransition(int previousState, int currentState, int currentTag, IAction action)
previousState
- the previous statecurrentState
- The current statecurrentTag
- the current TLV's tagaction
- The action to execute. It could be null.public boolean hasAction()
true
if an action has been asociated to the
transitionpublic IAction getAction()
public String toString(IStates statesEnum)
statesEnum
- Starting state.public int getCurrentState()
public int getPreviousState()
Copyright © 2003–2013 The Apache Software Foundation. All rights reserved.