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 TypeMethodDescriptionvoid
Iterate to the next transition after the provided oneint
getNumTransitions
(int state) How many transitions this state has.void
getTransition
(int state, int index, Transition t) Fill the providedTransition
with the index'th transition leaving the specified state.int
initTransition
(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 providedTransition
with the index'th transition leaving the specified state.
-