com.karneim.util.collection.regex
Class Automaton_Pattern

java.lang.Object
  extended by com.karneim.util.collection.automaton.Automaton
      extended by com.karneim.util.collection.set.AutomatonSet_String
          extended by com.karneim.util.collection.regex.Automaton_Pattern
All Implemented Interfaces:
java.lang.Cloneable

public class Automaton_Pattern
extends AutomatonSet_String


Nested Class Summary
protected static interface Automaton_Pattern.IPState
           
protected  class Automaton_Pattern.LinkedSet_PState
           
protected static class Automaton_Pattern.PProperties
           
protected  class Automaton_Pattern.PState
           
 
Nested classes/interfaces inherited from class com.karneim.util.collection.set.AutomatonSet_String
AutomatonSet_String.ISState, AutomatonSet_String.ISStateChangedListener, AutomatonSet_String.LinkedSet_SState, AutomatonSet_String.SProperties, AutomatonSet_String.SState
 
Nested classes/interfaces inherited from class com.karneim.util.collection.automaton.Automaton
Automaton.IChangedListener, Automaton.IState, Automaton.IStateChangedListener, Automaton.IStateVisitedListener, Automaton.ITransitionVisitedListener, Automaton.LinkedSet_State, Automaton.State, Automaton.Wrapper_State
 
Field Summary
protected  java.lang.String regEx
           
protected  com.karneim.util.collection.regex.PScanner scanner
           
 
Fields inherited from class com.karneim.util.collection.set.AutomatonSet_String
fullSet, FULLSET
 
Fields inherited from class com.karneim.util.collection.automaton.Automaton
aStates, automatonNr, currentStateNr, FALSE, isDeterministic, listeners, startState, TRUE, UNKNOWN
 
Constructor Summary
protected Automaton_Pattern()
           
protected Automaton_Pattern(ISet_char fullSet)
           
protected Automaton_Pattern(java.lang.String regEx)
           
 
Method Summary
protected  void addAll(AutomatonSet_String.SState state)
           
protected  void addAll(AutomatonSet_String automaton)
           
protected  void addAll(java.lang.String regEx)
           
protected  AutomatonSet_String.SState addState(boolean isFinal)
           
protected  void clear()
           
protected  java.lang.Object clone()
           
protected  void complement()
           
protected  AutomatonSet_String.SState complement(AutomatonSet_String.SState state)
           
protected  AutomatonSet_String.SState concat(AutomatonSet_String.SState state_A, AutomatonSet_String.SState state_B)
           
protected  Automaton.State createState()
           
protected  AutomatonSet_String.SState createState(boolean isFinal)
           
protected  Automaton.State getStartState()
           
protected  Automaton.LinkedSet_State getStates()
           
protected  AutomatonSet_String.SState intersect(AutomatonSet_String.SState state_A, AutomatonSet_String.SState state_B)
           
protected  boolean isDeterministic()
           
protected  boolean isDeterministic(Automaton.State startState)
           
protected  void minimize()
           
protected  Automaton.LinkedSet_State newLinkedSet_State()
           
protected  Automaton.LinkedSet_State newLinkedSet_State(Automaton.State state)
           
protected  com.karneim.util.collection.regex.PScanner newScanner()
           
protected  AutomatonSet_String.SState parseRegEx(java.lang.String regEx)
           
protected  void removeAll(AutomatonSet_String automaton)
           
protected  void removeAll(java.lang.String regEx)
           
protected  boolean removeState(Automaton_Pattern.PState removeState)
           
protected  void removeUselessStates()
           
protected  AutomatonSet_String.SState repeat(AutomatonSet_String.SState state, int minTimes, int maxTimes)
           
protected  void retainAll(AutomatonSet_String automaton)
           
protected  void retainAll(java.lang.String regEx)
           
protected  void setStartState(AutomatonSet_String.SState state)
           
protected  AutomatonSet_String.SState union(AutomatonSet_String.SState state_A, AutomatonSet_String.SState state_B)
           
 
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 com.karneim.util.collection.automaton.Automaton
addState, addState, removeUnreachableStates, setDeterminstic, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

regEx

protected java.lang.String regEx

scanner

protected com.karneim.util.collection.regex.PScanner scanner
Constructor Detail

Automaton_Pattern

protected Automaton_Pattern(ISet_char fullSet)

Automaton_Pattern

protected Automaton_Pattern()

Automaton_Pattern

protected Automaton_Pattern(java.lang.String regEx)
Method Detail

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()