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.booleanReturnstrueif 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:PatternCompilerCompiles the given pattern.- Specified by:
compilein interfacePatternCompiler
-
isPcreLike
public boolean isPcreLike()Description copied from interface:PatternCompilerReturnstrueif the regex implementation behaves like Perl -- notably, by supporting possessive quantifiers but also being susceptible to catastrophic backtracking.- Specified by:
isPcreLikein interfacePatternCompiler
-