Enum Class PositionAssertion.Type

java.lang.Object
java.lang.Enum<PositionAssertion.Type>
com.oracle.truffle.regex.tregex.parser.ast.PositionAssertion.Type
All Implemented Interfaces:
Serializable, Comparable<PositionAssertion.Type>, Constable
Enclosing class:
PositionAssertion

public static enum PositionAssertion.Type extends Enum<PositionAssertion.Type>
The position assertions supported by ECMAScript RegExps.
  • Enum Constant Details

    • CARET

      public static final PositionAssertion.Type CARET
      The ^ assertion, which matches at the beginning of the string.
    • DOLLAR

      public static final PositionAssertion.Type DOLLAR
      The $ assertion, which matches at the end of the string.
  • Method Details

    • values

      public static PositionAssertion.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 PositionAssertion.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