java.lang.Object
org.apache.lucene.util.automaton.RunAutomaton
org.apache.lucene.util.automaton.CharacterRunAutomaton
- All Implemented Interfaces:
Accountable
Automaton representation for matching char[].
-
Field Summary
Fields inherited from class org.apache.lucene.util.automaton.RunAutomaton
accept, alphabetSize, automaton, classmap, points, size, transitions
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.lucene.util.automaton.RunAutomaton
equals, getCharClass, getCharIntervals, getSize, hashCode, isAccept, ramBytesUsed, step, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
Constructor Details
-
CharacterRunAutomaton
Construct from a DFA- Throws:
IllegalArgumentException
- if the automaton is not deterministic
-
-
Method Details
-
run
Returns true if the given string is accepted by this automaton. -
run
public boolean run(char[] s, int offset, int length) Returns true if the given string is accepted by this automaton
-