Package org.pcre4j
Enum Class Pcre2PatternInfo
- All Implemented Interfaces:
Serializable,Comparable<Pcre2PatternInfo>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFinal options after compilingOptions passed toIPcre2.compile(java.lang.String, int, int[], long[], long)Number of highest backreferenceWhat \R matches: PCRE2_BSR_UNICODE: Unicode line endings PCRE2_BSR_ANYCRLF: CR, LF, or CRLF onlyNumber of capturing subpatternsBacktracking depth limit if set, otherwiseIPcre2.ERROR_UNSETExtra options that were passed in the compile contextBitmap of first code units, or 0Type of start-of-match information 0 nothing set 1 first code unit is set 2 start of string or after newlineFirst code unit when type is 1Size of backtracking frameReturn 1 if pattern contains \CReturn 1 if explicit CR or LF matches exist in the patternHeap memory limit if set, otherwiseIPcre2.ERROR_UNSETReturn 1 if (?J) or (?-J) was usedSize of JIT compiled code, or 0Type of must-be-present information 0 nothing set 1 code unit is setLast code unit when type is 11 if the pattern can match an empty string, 0 otherwiseMatch limit if set, otherwiseIPcre2.ERROR_UNSETLength (in characters) of the longest lookbehind assertionLower bound length of matching stringsNumber of named subpatternsSize of name table entriesPointer to name tableCode for the newline sequence:IPcre2.NEWLINE_CRIPcre2.NEWLINE_LFIPcre2.NEWLINE_CRLFIPcre2.NEWLINE_ANYIPcre2.NEWLINE_ANYCRLFIPcre2.NEWLINE_NULDeprecated.Size of compiled pattern -
Method Summary
Modifier and TypeMethodDescriptionintvalue()Get the integer value.static Optional<Pcre2PatternInfo> valueOf(int value) Get the enum entry by its integer value.static Pcre2PatternInfoReturns the enum constant of this class with the specified name.static Pcre2PatternInfo[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INFO_ALLOPTIONS
Final options after compiling -
INFO_ARGOPTIONS
Options passed toIPcre2.compile(java.lang.String, int, int[], long[], long) -
INFO_BACKREFMAX
Number of highest backreference -
INFO_BSR
What \R matches: PCRE2_BSR_UNICODE: Unicode line endings PCRE2_BSR_ANYCRLF: CR, LF, or CRLF only -
INFO_CAPTURECOUNT
Number of capturing subpatterns -
INFO_FIRSTCODEUNIT
First code unit when type is 1 -
INFO_FIRSTCODETYPE
Type of start-of-match information 0 nothing set 1 first code unit is set 2 start of string or after newline -
INFO_FIRSTBITMAP
Bitmap of first code units, or 0 -
INFO_HASCRORLF
Return 1 if explicit CR or LF matches exist in the pattern -
INFO_JCHANGED
Return 1 if (?J) or (?-J) was used -
INFO_JITSIZE
Size of JIT compiled code, or 0 -
INFO_LASTCODEUNIT
Last code unit when type is 1 -
INFO_LASTCODETYPE
Type of must-be-present information 0 nothing set 1 code unit is set -
INFO_MATCHEMPTY
1 if the pattern can match an empty string, 0 otherwise -
INFO_MATCHLIMIT
Match limit if set, otherwiseIPcre2.ERROR_UNSET -
INFO_MAXLOOKBEHIND
Length (in characters) of the longest lookbehind assertion -
INFO_MINLENGTH
Lower bound length of matching strings -
INFO_NAMECOUNT
Number of named subpatterns -
INFO_NAMEENTRYSIZE
Size of name table entries -
INFO_NAMETABLE
Pointer to name table -
INFO_NEWLINE
Code for the newline sequence:IPcre2.NEWLINE_CRIPcre2.NEWLINE_LFIPcre2.NEWLINE_CRLFIPcre2.NEWLINE_ANYIPcre2.NEWLINE_ANYCRLFIPcre2.NEWLINE_NUL -
INFO_DEPTHLIMIT
Backtracking depth limit if set, otherwiseIPcre2.ERROR_UNSET -
INFO_RECURSIONLIMIT
Deprecated.Obsolete synonym forINFO_DEPTHLIMIT -
INFO_SIZE
Size of compiled pattern -
INFO_HASBACKSLASHC
Return 1 if pattern contains \C -
INFO_FRAMESIZE
Size of backtracking frame -
INFO_HEAPLIMIT
Heap memory limit if set, otherwiseIPcre2.ERROR_UNSET -
INFO_EXTRAOPTIONS
Extra options that were passed in the compile context
-
-
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 entry by its integer value.- Parameters:
value- the integer value- Returns:
- the enum entry
-
value
public int value()Get the integer value.- Returns:
- the integer value
-