Package de.unkrig.lfr.core
Class PatternFactory
java.lang.Object
de.unkrig.ref4j.PatternFactory
de.unkrig.lfr.core.PatternFactory
A drop-in replacement for
Pattern
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final PatternFactory
The singletonPatternFactory
that implements the LFR regex engine. -
Method Summary
Methods inherited from class de.unkrig.ref4j.PatternFactory
get, get, quote, quoteReplacement
-
Field Details
-
INSTANCE
The singletonPatternFactory
that implements the LFR regex engine.
-
-
Method Details
-
getId
- Specified by:
getId
in classPatternFactory
- Returns:
- A package name-like string that is unique among all existing pattern factory implementations
-
getSupportedFlags
public int getSupportedFlags()- Specified by:
getSupportedFlags
in classPatternFactory
- Returns:
- The union of all flags supported by
this
engine.
-
compile
Description copied from class:PatternFactory
Compiles the given regex into aPattern
.- Overrides:
compile
in classPatternFactory
- Throws:
PatternSyntaxException
- See Also:
-
compile
Description copied from class:PatternFactory
Compiles the given regex into aPattern
with the given flags.- Specified by:
compile
in classPatternFactory
flags
- The or'ed compilation flag constants declared byPattern
- Throws:
PatternSyntaxException
- See Also:
-
matches
- Specified by:
matches
in classPatternFactory
- See Also:
-