@FunctionalInterface public interface RegexFeatureSet
| Modifier and Type | Field and Description |
|---|---|
static RegexFeatureSet |
DEFAULT |
static RegexFeatureSet |
JONI |
static RegexFeatureSet |
TREGEX |
static RegexFeatureSet |
TREGEX_JONI |
| Modifier and Type | Method and Description |
|---|---|
default void |
checkSupport(RegexSource source,
RegexFeatures features) |
Optional<String> |
testSupport(RegexSource source,
RegexFeatures features)
Tests whether or not a regular expression is supported.
|
static final RegexFeatureSet DEFAULT
static final RegexFeatureSet TREGEX
static final RegexFeatureSet JONI
static final RegexFeatureSet TREGEX_JONI
Optional<String> testSupport(RegexSource source, RegexFeatures features)
source - the regular expression whose features are in questionfeatures - a record of features detected in the expression by the parser that validated
its well-formednessOptional.empty() if the regex is supportedOptional.of(err) if the regex is not supported; err is the error
messagedefault void checkSupport(RegexSource source, RegexFeatures features) throws UnsupportedRegexException
UnsupportedRegexException