Package io.cucumber.cucumberexpressions
Interface PatternCompiler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Abstracts creation of new
Pattern. In some platforms and Java versions some flags are not supported (e.g Pattern.UNICODE_CHARACTER_CLASS on Android) - clients for those platforms should provide resource META-INF/services/io.cucumber.cucumberexpressions.PatternCompiler pointing to implementation of this interface.- See Also:
-
DefaultPatternCompilerServiceLoader
-
Method Summary
-
Method Details
-
compile
- Parameters:
regexp- regular expressionflags- additional flags (e.g.Pattern.UNICODE_CHARACTER_CLASS)- Returns:
- new
Patterninstance from providedregexp
-