Top Description Methods
com.google.common.base

pack-priv Interface PatternCompiler

Known Direct Implementers
com.google.common.base.Platform.JdkPatternCompiler
Annotations
@GwtIncompatible
@ElementTypesAreNonnullByDefault
Imports
com.google.common.annotations.GwtIncompatible, com.google.errorprone.annotations.RestrictedApi

Pluggable interface for compiling a regex pattern. By default this package uses the java.util.regex library, but an alternate implementation can be supplied using the java.util.ServiceLoader mechanism.

Method Summary

Modifier and TypeMethod and Description
public CommonPattern
compile(String pattern)

Compiles the given pattern.

public boolean
isPcreLike()

Returns true if the regex implementation behaves like Perl -- notably, by supporting possessive quantifiers but also being susceptible to catastrophic backtracking.

Method Detail

compileback to summary
public CommonPattern compile(String pattern)

Compiles the given pattern.

Annotations
@RestrictedApi
explanation:PatternCompiler is an implementation detail of com.google.common.base
allowedOnPath:.*/com/google/common/base/.*
Exceptions
IllegalArgumentException:
if the pattern is invalid
isPcreLikeback to summary
public boolean isPcreLike()

Returns true if the regex implementation behaves like Perl -- notably, by supporting possessive quantifiers but also being susceptible to catastrophic backtracking.

Annotations
@RestrictedApi
explanation:PatternCompiler is an implementation detail of com.google.common.base
allowedOnPath:.*/com/google/common/base/.*