Package com.google.common.base
Interface PatternCompiler
-
- All Known Implementing Classes:
Platform.JdkPatternCompiler
@GwtIncompatible interface PatternCompiler
Pluggable interface for compiling a regex pattern. By default this package uses thejava.util.regex
library, but an alternate implementation can be supplied using theServiceLoader
mechanism.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CommonPattern
compile(java.lang.String pattern)
Compiles the given pattern.
-
-
-
Method Detail
-
compile
CommonPattern compile(java.lang.String pattern)
Compiles the given pattern.- Throws:
java.lang.IllegalArgumentException
- if the pattern is invalid
-
-