Enum Class RE.G.Type

java.lang.Object
java.lang.Enum<RE.G.Type>
aQute.libg.re.RE.G.Type
All Implemented Interfaces:
Serializable, Comparable<RE.G.Type>, Constable
Enclosing interface:
RE.G

public static enum RE.G.Type extends Enum<RE.G.Type>
Variation of different group types
  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Matches _if_ its members can match ahead of the current position.
    An atomic group is a group that, when the regex engine exits from it, automatically throws away all backtracking positions remembered by any tokens inside the group.The regular expression `a(bc|b)c` matches `abcc` and `abc`.
    Matches _if_ its members can match behind the current position.
    Basic most simple group.
    If this group is matched, the value of this group specifically can be retrieved by its group name.
    Groups but will not capture a match.
    Will not provide grouping parenthesis.
    Negated
    Will match if its members do not match ahead
    Will match if its members do not match before
  • Method Summary

    Modifier and Type
    Method
    Description
    static RE.G.Type
    Returns the enum constant of this class with the specified name.
    static RE.G.Type[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • AHEAD

      public static final RE.G.Type AHEAD
      Matches _if_ its members can match ahead of the current position. It will not consume anything from the input. See https://www.regular-expressions.info/lookaround.html
    • ATOMIC

      public static final RE.G.Type ATOMIC
      An atomic group is a group that, when the regex engine exits from it, automatically throws away all backtracking positions remembered by any tokens inside the group.The regular expression `a(bc|b)c` matches `abcc` and `abc`. The regex `a(?>bc|b)c` (atomic group) matches `abcc` but not `abc`.
    • BEHIND

      public static final RE.G.Type BEHIND
      Matches _if_ its members can match behind the current position. It will not consume anything from the input. See https://www.regular-expressions.info/lookaround.html
    • CAPTURING

      public static final RE.G.Type CAPTURING
      Basic most simple group. It is advised not to use these since they need to be counted and that is really tricky. Using named groups is much easier and recommended.
    • NAMED

      public static final RE.G.Type NAMED
      If this group is matched, the value of this group specifically can be retrieved by its group name.
    • NONCAPTURING

      public static final RE.G.Type NONCAPTURING
      Groups but will not capture a match.
    • NONE

      public static final RE.G.Type NONE
      Will not provide grouping parenthesis.
    • NOT_AHEAD

      public static final RE.G.Type NOT_AHEAD
      Will match if its members do not match ahead
    • NOT_BEHIND

      public static final RE.G.Type NOT_BEHIND
      Will match if its members do not match before
    • NOT

      public static final RE.G.Type NOT
      Negated
  • Method Details

    • values

      public static RE.G.Type[] 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 RE.G.Type 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