Package org.apache.lucene.util.automaton
Interface TransitionAccessor
- All Known Implementing Classes:
Automaton,NFARunAutomaton
public interface TransitionAccessor
Interface accessing the transitions of an automaton
-
Method Summary
Modifier and TypeMethodDescriptionvoidIterate to the next transition after the provided oneintgetNumTransitions(int state) How many transitions this state has.voidgetTransition(int state, int index, Transition t) Fill the providedTransitionwith the index'th transition leaving the specified state.intinitTransition(int state, Transition t) Initialize the provided Transition to iterate through all transitions leaving the specified state.
-
Method Details
-
initTransition
Initialize the provided Transition to iterate through all transitions leaving the specified state. You must callgetNextTransition(org.apache.lucene.util.automaton.Transition)to get each transition. Returns the number of transitions leaving this state. -
getNextTransition
Iterate to the next transition after the provided one -
getNumTransitions
int getNumTransitions(int state) How many transitions this state has. -
getTransition
Fill the providedTransitionwith the index'th transition leaving the specified state.
-