Enum Class TokenKind

java.lang.Object
java.lang.Enum<TokenKind>
org.wpilib.util.struct.parser.TokenKind
All Implemented Interfaces:
Serializable, Comparable<TokenKind>, Constable

public enum TokenKind extends Enum<TokenKind>
A lexed raw struct schema token.
  • Enum Constant Details

    • UNKNOWN

      public static final TokenKind UNKNOWN
      Unknown.
    • INTEGER

      public static final TokenKind INTEGER
      Integer.
    • IDENTIFIER

      public static final TokenKind IDENTIFIER
      Identifier.
    • LEFT_BRACKET

      public static final TokenKind LEFT_BRACKET
      Left square bracket.
    • RIGHT_BRACKET

      public static final TokenKind RIGHT_BRACKET
      Right square bracket.
    • LEFT_BRACE

      public static final TokenKind LEFT_BRACE
      Left curly brace.
    • RIGHT_BRACE

      public static final TokenKind RIGHT_BRACE
      Right curly brace.
    • COLON

      public static final TokenKind COLON
      Colon.
    • SEMICOLON

      public static final TokenKind SEMICOLON
      Semicolon.
    • COMMA

      public static final TokenKind COMMA
      Comma.
    • EQUALS

      public static final TokenKind EQUALS
      Equals.
    • END_OF_INPUT

      public static final TokenKind END_OF_INPUT
      End of input.
  • Method Details

    • values

      public static TokenKind[] 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 TokenKind 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<TokenKind>