public class Automaton_Pattern extends AutomatonSet_String
Modifier and Type | Class and Description |
---|---|
protected static interface |
Automaton_Pattern.IPState |
protected class |
Automaton_Pattern.LinkedSet_PState |
protected static class |
Automaton_Pattern.PProperties |
protected class |
Automaton_Pattern.PState |
AutomatonSet_String.ISState, AutomatonSet_String.ISStateChangedListener, AutomatonSet_String.LinkedSet_SState, AutomatonSet_String.SProperties, AutomatonSet_String.SState
Automaton.IChangedListener, Automaton.IState, Automaton.IStateChangedListener, Automaton.IStateVisitedListener, Automaton.ITransitionVisitedListener, Automaton.LinkedSet_State, Automaton.State, Automaton.Wrapper_State
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
regEx |
protected com.karneim.util.collection.regex.PScanner |
scanner |
fullSet, FULLSET
aStates, automatonNr, currentStateNr, FALSE, isDeterministic, listeners, startState, TRUE, UNKNOWN
Modifier | Constructor and Description |
---|---|
protected |
Automaton_Pattern() |
protected |
Automaton_Pattern(ISet_char fullSet) |
protected |
Automaton_Pattern(java.lang.String regEx) |
addChangedListener, addState, cloneState, cloneStates, concatAll, concatAll, makeDeterministic, minimize, minus, optional, removeAll, removeChangedListener, removeState, retainAll, setDeterministic, setStartState
addState, addState, removeUnreachableStates, setDeterminstic, toString
protected java.lang.String regEx
protected com.karneim.util.collection.regex.PScanner scanner
protected Automaton_Pattern(ISet_char fullSet)
protected Automaton_Pattern()
protected Automaton_Pattern(java.lang.String regEx)
protected Automaton.State getStartState()
getStartState
in class AutomatonSet_String
protected Automaton.State createState()
createState
in class AutomatonSet_String
protected AutomatonSet_String.SState createState(boolean isFinal)
createState
in class AutomatonSet_String
protected Automaton.LinkedSet_State newLinkedSet_State()
newLinkedSet_State
in class AutomatonSet_String
protected Automaton.LinkedSet_State newLinkedSet_State(Automaton.State state)
newLinkedSet_State
in class AutomatonSet_String
protected void setStartState(AutomatonSet_String.SState state)
protected AutomatonSet_String.SState addState(boolean isFinal)
addState
in class AutomatonSet_String
protected boolean removeState(Automaton_Pattern.PState removeState)
protected void clear()
clear
in class AutomatonSet_String
protected Automaton.LinkedSet_State getStates()
getStates
in class AutomatonSet_String
protected void minimize()
minimize
in class AutomatonSet_String
protected void removeUselessStates()
removeUselessStates
in class AutomatonSet_String
protected void addAll(AutomatonSet_String.SState state)
addAll
in class AutomatonSet_String
protected AutomatonSet_String.SState complement(AutomatonSet_String.SState state)
complement
in class AutomatonSet_String
protected AutomatonSet_String.SState concat(AutomatonSet_String.SState state_A, AutomatonSet_String.SState state_B)
concat
in class AutomatonSet_String
protected AutomatonSet_String.SState repeat(AutomatonSet_String.SState state, int minTimes, int maxTimes)
repeat
in class AutomatonSet_String
protected AutomatonSet_String.SState union(AutomatonSet_String.SState state_A, AutomatonSet_String.SState state_B)
union
in class AutomatonSet_String
protected AutomatonSet_String.SState intersect(AutomatonSet_String.SState state_A, AutomatonSet_String.SState state_B)
intersect
in class AutomatonSet_String
protected void complement()
complement
in class AutomatonSet_String
protected void addAll(java.lang.String regEx)
protected void retainAll(java.lang.String regEx)
protected void removeAll(java.lang.String regEx)
protected boolean isDeterministic()
isDeterministic
in class AutomatonSet_String
protected boolean isDeterministic(Automaton.State startState)
isDeterministic
in class Automaton
protected void addAll(AutomatonSet_String automaton)
addAll
in class AutomatonSet_String
protected void retainAll(AutomatonSet_String automaton)
retainAll
in class AutomatonSet_String
protected void removeAll(AutomatonSet_String automaton)
removeAll
in class AutomatonSet_String
protected java.lang.Object clone()
clone
in class AutomatonSet_String
protected AutomatonSet_String.SState parseRegEx(java.lang.String regEx) throws InvalidExpression
InvalidExpression
protected com.karneim.util.collection.regex.PScanner newScanner()