Enum Class Token.Type

java.lang.Object
java.lang.Enum<Token.Type>
io.cucumber.cucumberexpressions.Token.Type
All Implemented Interfaces:
Serializable, Comparable<Token.Type>, Constable
Enclosing class:
Token

static enum Token.Type extends Enum<Token.Type>
  • Enum Constant Details

    • START_OF_LINE

      public static final Token.Type START_OF_LINE
    • END_OF_LINE

      public static final Token.Type END_OF_LINE
    • WHITE_SPACE

      public static final Token.Type WHITE_SPACE
    • BEGIN_OPTIONAL

      public static final Token.Type BEGIN_OPTIONAL
    • END_OPTIONAL

      public static final Token.Type END_OPTIONAL
    • BEGIN_PARAMETER

      public static final Token.Type BEGIN_PARAMETER
    • END_PARAMETER

      public static final Token.Type END_PARAMETER
    • ALTERNATION

      public static final Token.Type ALTERNATION
    • TEXT

      public static final Token.Type TEXT
  • Field Details

    • symbol

      private final @Nullable String symbol
    • purpose

      private final @Nullable String purpose
  • Constructor Details

    • Type

      private Type()
    • Type

      private Type(@Nullable String symbol, @Nullable String purpose)
  • Method Details

    • values

      public static Token.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 Token.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
    • purpose

      String purpose()
    • symbol

      String symbol()