public class CharacterRunAutomaton extends RunAutomaton
NULL_ACCOUNTABLE
Constructor and Description |
---|
CharacterRunAutomaton(Automaton a)
Construct with a default number of maxDeterminizedStates.
|
CharacterRunAutomaton(Automaton a,
int maxDeterminizedStates)
Construct specifying maxDeterminizedStates.
|
Modifier and Type | Method and Description |
---|---|
boolean |
run(char[] s,
int offset,
int length)
Returns true if the given string is accepted by this automaton
|
boolean |
run(String s)
Returns true if the given string is accepted by this automaton.
|
equals, getCharIntervals, getSize, hashCode, isAccept, ramBytesUsed, step, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getChildResources
public CharacterRunAutomaton(Automaton a)
public CharacterRunAutomaton(Automaton a, int maxDeterminizedStates)
a
- Automaton to matchmaxDeterminizedStates
- maximum number of states that the automaton
can have once determinized. If more states are required to determinize
it then a TooComplexToDeterminizeException is thrown.public boolean run(String s)
public boolean run(char[] s, int offset, int length)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.