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.
@API(status=STABLE) @FunctionalInterface public interface PatternCompiler
Abstracts creation of newPattern. In some platforms and Java versions some flags are not supported (e.gPattern.UNICODE_CHARACTER_CLASSon Android) - clients for those platforms should provide resourceMETA-INF/services/io.cucumber.cucumberexpressions.PatternCompilerpointing to implementation of this interface.- See Also:
DefaultPatternCompiler,ServiceLoader
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Patterncompile(String regexp, int flags)
-
-
-
Method Detail
-
compile
Pattern compile(String regexp, int flags)
- Parameters:
regexp- regular expressionflags- additional flags (e.g.Pattern.UNICODE_CHARACTER_CLASS)- Returns:
- new
Patterninstance from providedregexp
-
-