Package org.pcre4j

Enum Class Pcre2PatternInfo

java.lang.Object
java.lang.Enum<Pcre2PatternInfo>
org.pcre4j.Pcre2PatternInfo
All Implemented Interfaces:
Serializable, Comparable<Pcre2PatternInfo>, Constable

public enum Pcre2PatternInfo extends Enum<Pcre2PatternInfo>
  • Enum Constant Details

    • INFO_ALLOPTIONS

      public static final Pcre2PatternInfo INFO_ALLOPTIONS
      Final options after compiling
    • INFO_ARGOPTIONS

      public static final Pcre2PatternInfo INFO_ARGOPTIONS
      Options passed to IPcre2.compile(java.lang.String, int, int[], long[], long)
    • INFO_BACKREFMAX

      public static final Pcre2PatternInfo INFO_BACKREFMAX
      Number of highest backreference
    • INFO_BSR

      public static final Pcre2PatternInfo INFO_BSR
      What \R matches: PCRE2_BSR_UNICODE: Unicode line endings PCRE2_BSR_ANYCRLF: CR, LF, or CRLF only
    • INFO_CAPTURECOUNT

      public static final Pcre2PatternInfo INFO_CAPTURECOUNT
      Number of capturing subpatterns
    • INFO_FIRSTCODEUNIT

      public static final Pcre2PatternInfo INFO_FIRSTCODEUNIT
      First code unit when type is 1
    • INFO_FIRSTCODETYPE

      public static final Pcre2PatternInfo 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

      public static final Pcre2PatternInfo INFO_FIRSTBITMAP
      Bitmap of first code units, or 0
    • INFO_HASCRORLF

      public static final Pcre2PatternInfo INFO_HASCRORLF
      Return 1 if explicit CR or LF matches exist in the pattern
    • INFO_JCHANGED

      public static final Pcre2PatternInfo INFO_JCHANGED
      Return 1 if (?J) or (?-J) was used
    • INFO_JITSIZE

      public static final Pcre2PatternInfo INFO_JITSIZE
      Size of JIT compiled code, or 0
    • INFO_LASTCODEUNIT

      public static final Pcre2PatternInfo INFO_LASTCODEUNIT
      Last code unit when type is 1
    • INFO_LASTCODETYPE

      public static final Pcre2PatternInfo INFO_LASTCODETYPE
      Type of must-be-present information 0 nothing set 1 code unit is set
    • INFO_MATCHEMPTY

      public static final Pcre2PatternInfo INFO_MATCHEMPTY
      1 if the pattern can match an empty string, 0 otherwise
    • INFO_MATCHLIMIT

      public static final Pcre2PatternInfo INFO_MATCHLIMIT
      Match limit if set, otherwise IPcre2.ERROR_UNSET
    • INFO_MAXLOOKBEHIND

      public static final Pcre2PatternInfo INFO_MAXLOOKBEHIND
      Length (in characters) of the longest lookbehind assertion
    • INFO_MINLENGTH

      public static final Pcre2PatternInfo INFO_MINLENGTH
      Lower bound length of matching strings
    • INFO_NAMECOUNT

      public static final Pcre2PatternInfo INFO_NAMECOUNT
      Number of named subpatterns
    • INFO_NAMEENTRYSIZE

      public static final Pcre2PatternInfo INFO_NAMEENTRYSIZE
      Size of name table entries
    • INFO_NAMETABLE

      public static final Pcre2PatternInfo INFO_NAMETABLE
      Pointer to name table
    • INFO_NEWLINE

      public static final Pcre2PatternInfo INFO_NEWLINE
      Code for the newline sequence: IPcre2.NEWLINE_CR IPcre2.NEWLINE_LF IPcre2.NEWLINE_CRLF IPcre2.NEWLINE_ANY IPcre2.NEWLINE_ANYCRLF IPcre2.NEWLINE_NUL
    • INFO_DEPTHLIMIT

      public static final Pcre2PatternInfo INFO_DEPTHLIMIT
      Backtracking depth limit if set, otherwise IPcre2.ERROR_UNSET
    • INFO_RECURSIONLIMIT

      @Deprecated public static final Pcre2PatternInfo INFO_RECURSIONLIMIT
      Deprecated.
      Obsolete synonym for INFO_DEPTHLIMIT
    • INFO_SIZE

      public static final Pcre2PatternInfo INFO_SIZE
      Size of compiled pattern
    • INFO_HASBACKSLASHC

      public static final Pcre2PatternInfo INFO_HASBACKSLASHC
      Return 1 if pattern contains \C
    • INFO_FRAMESIZE

      public static final Pcre2PatternInfo INFO_FRAMESIZE
      Size of backtracking frame
    • INFO_HEAPLIMIT

      public static final Pcre2PatternInfo INFO_HEAPLIMIT
      Heap memory limit if set, otherwise IPcre2.ERROR_UNSET
    • INFO_EXTRAOPTIONS

      public static final Pcre2PatternInfo INFO_EXTRAOPTIONS
      Extra options that were passed in the compile context
  • Method Details

    • values

      public static Pcre2PatternInfo[] 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

      public static Pcre2PatternInfo valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • valueOf

      public static Optional<Pcre2PatternInfo> valueOf(int value)
      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