Class Platform.JdkPatternCompiler

java.lang.Object
com.google.common.base.Platform.JdkPatternCompiler
All Implemented Interfaces:
PatternCompiler
Enclosing class:
Platform

private static final class Platform.JdkPatternCompiler extends Object implements PatternCompiler
  • Constructor Details

    • JdkPatternCompiler

      private JdkPatternCompiler()
  • Method Details

    • compile

      public CommonPattern compile(String pattern)
      Description copied from interface: PatternCompiler
      Compiles the given pattern.
      Specified by:
      compile in interface PatternCompiler
    • isPcreLike

      public boolean isPcreLike()
      Description copied from interface: PatternCompiler
      Returns true if the regex implementation behaves like Perl -- notably, by supporting possessive quantifiers but also being susceptible to catastrophic backtracking.
      Specified by:
      isPcreLike in interface PatternCompiler