Package | Description |
---|---|
org.apache.lucene.util.automaton |
Finite-state automaton for regular expressions.
|
Modifier and Type | Field and Description |
---|---|
private static DaciukMihovAutomatonBuilder.State[] |
DaciukMihovAutomatonBuilder.State.NO_STATES
An empty set of states.
|
private DaciukMihovAutomatonBuilder.State |
DaciukMihovAutomatonBuilder.root
Root automaton state.
|
(package private) DaciukMihovAutomatonBuilder.State[] |
DaciukMihovAutomatonBuilder.State.states
States reachable from outgoing transitions.
|
Modifier and Type | Field and Description |
---|---|
private java.util.HashMap<DaciukMihovAutomatonBuilder.State,DaciukMihovAutomatonBuilder.State> |
DaciukMihovAutomatonBuilder.stateRegistry
A "registry" for state interning.
|
private java.util.HashMap<DaciukMihovAutomatonBuilder.State,DaciukMihovAutomatonBuilder.State> |
DaciukMihovAutomatonBuilder.stateRegistry
A "registry" for state interning.
|
Modifier and Type | Method and Description |
---|---|
DaciukMihovAutomatonBuilder.State |
DaciukMihovAutomatonBuilder.complete()
Finalize the automaton and return the root state.
|
(package private) DaciukMihovAutomatonBuilder.State |
DaciukMihovAutomatonBuilder.State.getState(int label)
Returns the target state of a transition leaving this state and labeled
with
label . |
(package private) DaciukMihovAutomatonBuilder.State |
DaciukMihovAutomatonBuilder.State.lastChild()
Return the most recent transitions's target state.
|
(package private) DaciukMihovAutomatonBuilder.State |
DaciukMihovAutomatonBuilder.State.lastChild(int label)
Return the associated state if the most recent transition is labeled with
label . |
(package private) DaciukMihovAutomatonBuilder.State |
DaciukMihovAutomatonBuilder.State.newState(int label)
Create a new outgoing transition labeled
label and return
the newly created target state for this transition. |
Modifier and Type | Method and Description |
---|---|
private void |
DaciukMihovAutomatonBuilder.addSuffix(DaciukMihovAutomatonBuilder.State state,
java.lang.CharSequence current,
int fromIndex)
Add a suffix of
current starting at fromIndex
(inclusive) to state state . |
private static int |
DaciukMihovAutomatonBuilder.convert(Automaton.Builder a,
DaciukMihovAutomatonBuilder.State s,
java.util.IdentityHashMap<DaciukMihovAutomatonBuilder.State,java.lang.Integer> visited)
Internal recursive traversal for conversion.
|
(package private) void |
DaciukMihovAutomatonBuilder.State.replaceLastChild(DaciukMihovAutomatonBuilder.State state)
Replace the last added outgoing transition's target state with the given
state.
|
private void |
DaciukMihovAutomatonBuilder.replaceOrRegister(DaciukMihovAutomatonBuilder.State state)
Replace last child of
state with an already registered state
or stateRegistry the last child state. |
Modifier and Type | Method and Description |
---|---|
private static int |
DaciukMihovAutomatonBuilder.convert(Automaton.Builder a,
DaciukMihovAutomatonBuilder.State s,
java.util.IdentityHashMap<DaciukMihovAutomatonBuilder.State,java.lang.Integer> visited)
Internal recursive traversal for conversion.
|