Package org.pcre4j
Enum Class Pcre2CompileOption
- All Implemented Interfaces:
Serializable,Comparable<Pcre2CompileOption>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAllow empty classesAlternative handling of ⧵u, ⧵U, and ⧵xAlternative handling of ^ in multiline modeProcess backslashes in verb namesForce pattern anchoringCompile automatic calloutsDo caseless matching$ not to match newline at end.Allow duplicate names for subpatternsPattern can match only at end of subjectIgnore white space and # commentsForce matching to be before newlinePattern characters are all literalEnable support for matching invalid UTFMatch unset backreferences^ and $ match newlines within dataLock out the use of \C in patternsLock out PCRE2_UCP, e.g.Lock out PCRE2_UTF, e.g.Disable numbered capturing parentheses (named ones available)Disable auto-possessificationDisable automatic anchoring for .*Disable match-time start optimizationsDo not check the pattern for UTF validity (only relevant if UTF is set)Use Unicode properties for \d, \w, etc.Invert greediness of quantifiersEnable offset limit for unanchored matchingTreat pattern and subjects as UTF strings -
Method Summary
Modifier and TypeMethodDescriptionintvalue()Get the option value of the enum value.static Optional<Pcre2CompileOption> valueOf(int value) Get the enum value by its option value.static Pcre2CompileOptionReturns the enum constant of this class with the specified name.static Pcre2CompileOption[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ANCHORED
Force pattern anchoring -
NO_UTF_CHECK
Do not check the pattern for UTF validity (only relevant if UTF is set) -
ENDANCHORED
Pattern can match only at end of subject -
ALLOW_EMPTY_CLASS
Allow empty classes -
ALT_BSUX
Alternative handling of ⧵u, ⧵U, and ⧵x -
AUTO_CALLOUT
Compile automatic callouts -
CASELESS
Do caseless matching -
DOLLAR_ENDONLY
$ not to match newline at end -
DOTALL
. matches anything including NL -
DUPNAMES
Allow duplicate names for subpatterns -
EXTENDED
Ignore white space and # comments -
FIRSTLINE
Force matching to be before newline -
MATCH_UNSET_BACKREF
Match unset backreferences -
MULTILINE
^ and $ match newlines within data -
NEVER_UCP
Lock out PCRE2_UCP, e.g. via (*UCP) -
NEVER_UTF
Lock out PCRE2_UTF, e.g. via (*UTF) -
NO_AUTO_CAPTURE
Disable numbered capturing parentheses (named ones available) -
NO_AUTO_POSSESS
Disable auto-possessification -
NO_DOTSTAR_ANCHOR
Disable automatic anchoring for .* -
NO_START_OPTIMIZE
Disable match-time start optimizations -
UCP
Use Unicode properties for \d, \w, etc. -
UNGREEDY
Invert greediness of quantifiers -
UTF
Treat pattern and subjects as UTF strings -
NEVER_BACKSLASH_C
Lock out the use of \C in patterns -
ALT_CIRCUMFLEX
Alternative handling of ^ in multiline mode -
ALT_VERBNAMES
Process backslashes in verb names -
USE_OFFSET_LIMIT
Enable offset limit for unanchored matching -
EXTENDED_MORE
-
LITERAL
Pattern characters are all literal -
MATCH_INVALID_UTF
Enable support for matching invalid UTF
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
valueOf
Get the enum value by its option value.- Parameters:
value- the integer value of the option- Returns:
- the flag
-
value
public int value()Get the option value of the enum value.- Returns:
- the integer value of the option
-