@FunctionalInterface public interface RegexFeatureSet
Modifier and Type | Field and Description |
---|---|
static RegexFeatureSet |
DEFAULT |
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
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