Package com.google.common.base
Class Platform.JdkPatternCompiler
java.lang.Object
com.google.common.base.Platform.JdkPatternCompiler
- All Implemented Interfaces:
PatternCompiler
- Enclosing class:
Platform
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCompiles the given pattern.boolean
Returnstrue
if the regex implementation behaves like Perl -- notably, by supporting possessive quantifiers but also being susceptible to catastrophic backtracking.
-
Constructor Details
-
JdkPatternCompiler
private JdkPatternCompiler()
-
-
Method Details
-
compile
Description copied from interface:PatternCompiler
Compiles the given pattern.- Specified by:
compile
in interfacePatternCompiler
-
isPcreLike
public boolean isPcreLike()Description copied from interface:PatternCompiler
Returnstrue
if the regex implementation behaves like Perl -- notably, by supporting possessive quantifiers but also being susceptible to catastrophic backtracking.- Specified by:
isPcreLike
in interfacePatternCompiler
-