Package org.tomlj

Enum Class TokenName

All Implemented Interfaces:
Serializable, Comparable<TokenName>, Constable

enum TokenName extends Enum<TokenName>
  • Enum Constant Details

    • LOWER_ALPHA

      public static final TokenName LOWER_ALPHA
    • UPPER_ALPHA

      public static final TokenName UPPER_ALPHA
    • DIGITS

      public static final TokenName DIGITS
    • ARRAY_END

      public static final TokenName ARRAY_END
    • ARRAY_TABLE_END

      public static final TokenName ARRAY_TABLE_END
    • INLINE_TABLE_END

      public static final TokenName INLINE_TABLE_END
    • DOT

      public static final TokenName DOT
    • DASH

      public static final TokenName DASH
    • PLUS

      public static final TokenName PLUS
    • COLON

      public static final TokenName COLON
    • EQUALS

      public static final TokenName EQUALS
    • COMMA

      public static final TokenName COMMA
    • Z

      public static final TokenName Z
    • APOSTROPHE

      public static final TokenName APOSTROPHE
    • QUOTATION_MARK

      public static final TokenName QUOTATION_MARK
    • TRIPLE_APOSTROPHE

      public static final TokenName TRIPLE_APOSTROPHE
    • TRIPLE_QUOTATION_MARK

      public static final TokenName TRIPLE_QUOTATION_MARK
    • CHARACTER

      public static final TokenName CHARACTER
    • NUMBER

      public static final TokenName NUMBER
    • BOOLEAN

      public static final TokenName BOOLEAN
    • DATETIME

      public static final TokenName DATETIME
    • TIME

      public static final TokenName TIME
    • ARRAY

      public static final TokenName ARRAY
    • INLINE_TABLE

      public static final TokenName INLINE_TABLE
    • TABLE

      public static final TokenName TABLE
    • NEWLINE

      public static final TokenName NEWLINE
    • EOF

      public static final TokenName EOF
    • NULL

      public static final TokenName NULL
  • Field Details

    • displayName

      private final String displayName
    • tokenTypes

      private final BitSet tokenTypes
  • Constructor Details

    • TokenName

      private TokenName(String displayName, int... tokenTypes)
  • Method Details

    • values

      public static TokenName[] 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 TokenName 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
    • namesForToken

      static Stream<TokenName> namesForToken(int tokenType)
    • displayName

      public String displayName()