public class CharacterRunAutomaton extends RunAutomaton
NULL_ACCOUNTABLE| Constructor and Description |
|---|
CharacterRunAutomaton(Automaton a)
Construct with a default determinizeWorkLimit..
|
CharacterRunAutomaton(Automaton a,
int determinizeWorkLimit)
Constructor specifying determinizeWorkLimit.
|
| 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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetChildResourcespublic CharacterRunAutomaton(Automaton a)
public CharacterRunAutomaton(Automaton a, int determinizeWorkLimit)
a - Automaton to matchdeterminizeWorkLimit - maximum effort to spend determinizing the automataon. If more
effort is required then a TooComplexToDeterminizeException is thrown. Use Operations.DEFAULT_DETERMINIZE_WORK_LIMIT as a decent default if you don't otherwise know
what to specify.public boolean run(String s)
public boolean run(char[] s,
int offset,
int length)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.