com.karneim.util.collection.regex
Class Automaton_Pattern
java.lang.Object
com.karneim.util.collection.automaton.Automaton
com.karneim.util.collection.set.AutomatonSet_String
com.karneim.util.collection.regex.Automaton_Pattern
- All Implemented Interfaces:
- java.lang.Cloneable
public class Automaton_Pattern
- extends AutomatonSet_String
|
Field Summary |
protected java.lang.String |
regEx
|
protected com.karneim.util.collection.regex.PScanner |
scanner
|
| Methods inherited from class com.karneim.util.collection.set.AutomatonSet_String |
addChangedListener, addState, cloneState, cloneStates, concatAll, concatAll, makeDeterministic, minimize, minus, optional, removeAll, removeChangedListener, removeState, retainAll, setDeterministic, setStartState |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
regEx
protected java.lang.String regEx
scanner
protected com.karneim.util.collection.regex.PScanner scanner
Automaton_Pattern
protected Automaton_Pattern(ISet_char fullSet)
Automaton_Pattern
protected Automaton_Pattern()
Automaton_Pattern
protected Automaton_Pattern(java.lang.String regEx)
getStartState
protected Automaton.State getStartState()
- Overrides:
getStartState in class AutomatonSet_String
createState
protected Automaton.State createState()
- Overrides:
createState in class AutomatonSet_String
createState
protected AutomatonSet_String.SState createState(boolean isFinal)
- Overrides:
createState in class AutomatonSet_String
newLinkedSet_State
protected Automaton.LinkedSet_State newLinkedSet_State()
- Overrides:
newLinkedSet_State in class AutomatonSet_String
newLinkedSet_State
protected Automaton.LinkedSet_State newLinkedSet_State(Automaton.State state)
- Overrides:
newLinkedSet_State in class AutomatonSet_String
setStartState
protected void setStartState(AutomatonSet_String.SState state)
addState
protected AutomatonSet_String.SState addState(boolean isFinal)
- Overrides:
addState in class AutomatonSet_String
removeState
protected boolean removeState(Automaton_Pattern.PState removeState)
clear
protected void clear()
- Overrides:
clear in class AutomatonSet_String
getStates
protected Automaton.LinkedSet_State getStates()
- Overrides:
getStates in class AutomatonSet_String
minimize
protected void minimize()
- Overrides:
minimize in class AutomatonSet_String
removeUselessStates
protected void removeUselessStates()
- Overrides:
removeUselessStates in class AutomatonSet_String
addAll
protected void addAll(AutomatonSet_String.SState state)
- Overrides:
addAll in class AutomatonSet_String
complement
protected AutomatonSet_String.SState complement(AutomatonSet_String.SState state)
- Overrides:
complement in class AutomatonSet_String
concat
protected AutomatonSet_String.SState concat(AutomatonSet_String.SState state_A,
AutomatonSet_String.SState state_B)
- Overrides:
concat in class AutomatonSet_String
repeat
protected AutomatonSet_String.SState repeat(AutomatonSet_String.SState state,
int minTimes,
int maxTimes)
- Overrides:
repeat in class AutomatonSet_String
union
protected AutomatonSet_String.SState union(AutomatonSet_String.SState state_A,
AutomatonSet_String.SState state_B)
- Overrides:
union in class AutomatonSet_String
intersect
protected AutomatonSet_String.SState intersect(AutomatonSet_String.SState state_A,
AutomatonSet_String.SState state_B)
- Overrides:
intersect in class AutomatonSet_String
complement
protected void complement()
- Overrides:
complement in class AutomatonSet_String
addAll
protected void addAll(java.lang.String regEx)
retainAll
protected void retainAll(java.lang.String regEx)
removeAll
protected void removeAll(java.lang.String regEx)
isDeterministic
protected boolean isDeterministic()
- Overrides:
isDeterministic in class AutomatonSet_String
isDeterministic
protected boolean isDeterministic(Automaton.State startState)
- Overrides:
isDeterministic in class Automaton
addAll
protected void addAll(AutomatonSet_String automaton)
- Overrides:
addAll in class AutomatonSet_String
retainAll
protected void retainAll(AutomatonSet_String automaton)
- Overrides:
retainAll in class AutomatonSet_String
removeAll
protected void removeAll(AutomatonSet_String automaton)
- Overrides:
removeAll in class AutomatonSet_String
clone
protected java.lang.Object clone()
- Overrides:
clone in class AutomatonSet_String
parseRegEx
protected AutomatonSet_String.SState parseRegEx(java.lang.String regEx)
throws InvalidExpression
- Throws:
InvalidExpression
newScanner
protected com.karneim.util.collection.regex.PScanner newScanner()