public class CharacterRunAutomaton extends RunAutomaton
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, step, toString
public CharacterRunAutomaton(Automaton a)
public CharacterRunAutomaton(Automaton a, int maxDeterminizedStates)
a
- Automaton to matchmaxDeterminizedStates
- maximum number of states that the automataon
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-2018 Apache Software Foundation. All Rights Reserved.