com.karneim.util.collection.regex

Class Automaton_Pattern

public class Automaton_Pattern extends AutomatonSet_String

Nested Class Summary
protected interfaceAutomaton_Pattern.IPState
protected classAutomaton_Pattern.LinkedSet_PState
protected static classAutomaton_Pattern.PProperties
protected classAutomaton_Pattern.PState
Field Summary
protected StringregEx
protected PScannerscanner
Constructor Summary
protected Automaton_Pattern(ISet_char fullSet)
protected Automaton_Pattern()
protected Automaton_Pattern(String regEx)
Method Summary
protected voidaddAll(SState state)
protected voidaddAll(String regEx)
protected voidaddAll(AutomatonSet_String automaton)
protected SStateaddState(boolean isFinal)
protected voidclear()
protected Objectclone()
protected SStatecomplement(SState state)
protected voidcomplement()
protected SStateconcat(SState state_A, SState state_B)
protected StatecreateState()
protected SStatecreateState(boolean isFinal)
protected Automaton.StategetStartState()
protected LinkedSet_StategetStates()
protected SStateintersect(SState state_A, SState state_B)
protected booleanisDeterministic()
protected booleanisDeterministic(State startState)
protected voidminimize()
protected LinkedSet_StatenewLinkedSet_State()
protected LinkedSet_StatenewLinkedSet_State(State state)
protected PScannernewScanner()
protected SStateparseRegEx(String regEx)
protected voidremoveAll(String regEx)
protected voidremoveAll(AutomatonSet_String automaton)
protected booleanremoveState(Automaton_Pattern.PState removeState)
protected voidremoveUselessStates()
protected SStaterepeat(SState state, int minTimes, int maxTimes)
protected voidretainAll(String regEx)
protected voidretainAll(AutomatonSet_String automaton)
protected voidsetStartState(SState state)
protected SStateunion(SState state_A, SState state_B)

Field Detail

regEx

protected String regEx

scanner

protected PScanner scanner

Constructor Detail

Automaton_Pattern

protected Automaton_Pattern(ISet_char fullSet)

Automaton_Pattern

protected Automaton_Pattern()

Automaton_Pattern

protected Automaton_Pattern(String regEx)

Method Detail

addAll

protected void addAll(SState state)

addAll

protected void addAll(String regEx)

addAll

protected void addAll(AutomatonSet_String automaton)

addState

protected SState addState(boolean isFinal)

clear

protected void clear()

clone

protected Object clone()

complement

protected SState complement(SState state)

complement

protected void complement()

concat

protected SState concat(SState state_A, SState state_B)

createState

protected State createState()

createState

protected SState createState(boolean isFinal)

getStartState

protected Automaton.State getStartState()

getStates

protected LinkedSet_State getStates()

intersect

protected SState intersect(SState state_A, SState state_B)

isDeterministic

protected boolean isDeterministic()

isDeterministic

protected boolean isDeterministic(State startState)

minimize

protected void minimize()

newLinkedSet_State

protected LinkedSet_State newLinkedSet_State()

newLinkedSet_State

protected LinkedSet_State newLinkedSet_State(State state)

newScanner

protected PScanner newScanner()

parseRegEx

protected SState parseRegEx(String regEx)

removeAll

protected void removeAll(String regEx)

removeAll

protected void removeAll(AutomatonSet_String automaton)

removeState

protected boolean removeState(Automaton_Pattern.PState removeState)

removeUselessStates

protected void removeUselessStates()

repeat

protected SState repeat(SState state, int minTimes, int maxTimes)

retainAll

protected void retainAll(String regEx)

retainAll

protected void retainAll(AutomatonSet_String automaton)

setStartState

protected void setStartState(SState state)

union

protected SState union(SState state_A, SState state_B)