|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.ispsoft.jaxme.re.PatternFactory
The PatternFactory provides access to a PatternCompiler
through its getPatternCompiler()
method.
Constructor Summary | |
PatternFactory()
|
Method Summary | |
static PatternCompiler |
getPatternCompiler()
Returns a PatternCompiler . |
static void |
setPatternCompiler(PatternCompiler pPatternCompiler)
Allows to replace the default PatternCompiler
with the given. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PatternFactory()
Method Detail |
public static void setPatternCompiler(PatternCompiler pPatternCompiler)
Allows to replace the default PatternCompiler
with the given.
public static PatternCompiler getPatternCompiler()
Returns a PatternCompiler
. The implementation
class is choosed as follows:
PatternCompiler
has been set by the user via
setPatternCompiler(PatternCompiler)
, returns that
compiler.de.ispsoft.jaxme.re.PatternCompiler
is set, instantiates the given class.META-INF/services/de.ispsoft.jaxme.re.PatternCompiler
exists, reads the first line from this resource and instantiates
the given class.Pattern
.
If the class can be loaded, instantiates
JavaUtilPatternCompiler
.org.apache.regex.RE
.
If the class can be loaded, instantiates
ApacheRegexpPatternCompiler
.Perl5Compiler
.
If the class can be loaded, instantiates OroPatternCompiler
.DummyPatternCompiler
, which
creates dummy patterns. A dummy pattern will treat any String as
matching.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |