| java.lang.Object com.tc.jrexx.regex.Pattern com.tc.jrexx.regex.PatternPro
PatternPro | public class PatternPro extends Pattern (Code) | | 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.
author: Ralf Meyer version: 1.0 |
PatternPro | public PatternPro()(Code) | | |
PatternPro | public PatternPro(PAutomaton automaton)(Code) | | creates a PatternPro with the given automaton. The automaton will not be cloned:
two PatternPro can use the same automaton.
|
clear | public void clear()(Code) | | |
complement | public void complement()(Code) | | |
contains | public boolean contains(String s, int offset, int length)(Code) | | |
contains | public boolean contains(char[] chars, int offset, int length)(Code) | | |
getPattern | public Pattern getPattern()(Code) | | don't needed: you have a PatternPro which extends Pattern.
(Pattern)this.clone() has the same effect
|
setPattern | public void setPattern(Pattern p)(Code) | | if p is an instance of PatternPro
use setAutomaton(p.getAutomaton());
else setAutomaton(new PatternPro(p).getAutomaton())
|
|
|