Package org.tomlj
Enum TokenName
- java.lang.Object
-
- java.lang.Enum<TokenName>
-
- org.tomlj.TokenName
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APOSTROPHE
ARRAY
ARRAY_END
ARRAY_TABLE_END
BOOLEAN
CHARACTER
COLON
COMMA
DASH
DATETIME
DIGITS
DOT
EOF
EQUALS
INLINE_TABLE
INLINE_TABLE_END
LOWER_ALPHA
NEWLINE
NULL
NUMBER
PLUS
QUOTATION_MARK
TABLE
TIME
TRIPLE_APOSTROPHE
TRIPLE_QUOTATION_MARK
UPPER_ALPHA
Z
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
displayName
private java.util.BitSet
tokenTypes
-
Constructor Summary
Constructors Modifier Constructor Description private
TokenName(java.lang.String displayName, int... tokenTypes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
displayName()
(package private) static java.util.stream.Stream<TokenName>
namesForToken(int tokenType)
static TokenName
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TokenName[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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
-
-
Method Detail
-
values
public static TokenName[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TokenName c : TokenName.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TokenName valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
namesForToken
static java.util.stream.Stream<TokenName> namesForToken(int tokenType)
-
displayName
public java.lang.String displayName()
-
-