|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.karneim.util.collection.regex.Pattern
com.karneim.util.collection.regex.PatternPro
Regular expression based on a minimized deterministic automaton (FSA) and designed as a set of strings.
Use this class to manipulate a reular expression through set oprations or automaton methods
PatternPro differs from Pattern that the contributed set of strings is mutable through the methods
addAll, removeAll and retainAll.
Further PaternPro provides access to its PAutomaton through the getAutomaton method.
So it is possible to inspect the automaton's states through PAutomaton's methods.
Field Summary |
Fields inherited from class com.karneim.util.collection.regex.Pattern |
automaton, AUTOMATON_MAP |
Constructor Summary | |
|
PatternPro()
|
protected |
PatternPro(Automaton_Pattern automaton)
|
protected |
PatternPro(ISet_char fullSet)
|
|
PatternPro(Pattern p)
copy constructor |
|
PatternPro(PAutomaton automaton)
creates a PatternPro with the given automaton. |
|
PatternPro(java.lang.String regEx)
|
Method Summary | |
void |
addAll(Pattern pattern)
|
void |
addAll(PAutomaton a)
|
void |
addAll(java.lang.String regEx)
|
void |
clear()
|
void |
complement()
|
boolean |
contains(char[] chars,
int offset,
int length)
|
boolean |
contains(java.io.Reader in)
|
boolean |
contains(java.lang.String s,
int offset,
int length)
|
PAutomaton |
getAutomaton()
|
protected AutomatonSet_String |
getInnerAutomaton()
|
Pattern |
getPattern()
Deprecated. |
void |
removeAll(Pattern pattern)
|
void |
removeAll(PAutomaton a)
|
void |
removeAll(java.lang.String regEx)
|
void |
retainAll(Pattern pattern)
|
void |
retainAll(PAutomaton a)
|
void |
retainAll(java.lang.String regEx)
|
void |
setAutomaton(PAutomaton a)
|
void |
setPattern(Pattern p)
Deprecated. |
void |
setRegEx(java.lang.String regEx)
|
Methods inherited from class com.karneim.util.collection.regex.Pattern |
clone, contains, contains, contains, contains, get, getRegEx, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected PatternPro(ISet_char fullSet)
protected PatternPro(Automaton_Pattern automaton)
public PatternPro()
public PatternPro(PAutomaton automaton)
public PatternPro(Pattern p)
public PatternPro(java.lang.String regEx)
Method Detail |
protected AutomatonSet_String getInnerAutomaton()
public void setRegEx(java.lang.String regEx)
public void setPattern(Pattern p)
public void setAutomaton(PAutomaton a)
public Pattern getPattern()
public PAutomaton getAutomaton()
public boolean contains(java.lang.String s, int offset, int length)
contains
in class Pattern
public boolean contains(char[] chars, int offset, int length)
contains
in class Pattern
public boolean contains(java.io.Reader in) throws java.io.IOException
contains
in class Pattern
java.io.IOException
public void complement()
public void addAll(java.lang.String regEx)
public void retainAll(java.lang.String regEx)
public void removeAll(java.lang.String regEx)
public void addAll(Pattern pattern)
public void retainAll(Pattern pattern)
public void removeAll(Pattern pattern)
public void addAll(PAutomaton a)
public void retainAll(PAutomaton a)
public void removeAll(PAutomaton a)
public void clear()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |