Package org.gnome.glib
Enum Class TokenType
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<TokenType>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum TokenType
extends Enum<TokenType>
implements Enumeration
The possible types of token returned from each
g_scanner_get_next_token() call.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptiona binary integera charactera ',' charactermulti line commentone line commentthe end of the filea '=' characteran error occurreda floating point numbera hex integeran identifiera null identifieran integera '[' charactera '{' charactera '(' characternot a tokenan octal integera ']' charactera '}' charactera ')' charactera stringa symbol -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
Get the numeric value of this enumstatic TokenType
of
(int value) Create a new TokenType for the provided valuestatic TokenType
Returns the enum constant of this class with the specified name.static TokenType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EOF
the end of the file -
LEFT_PAREN
a '(' character -
RIGHT_PAREN
a ')' character -
LEFT_CURLY
a '{' character -
RIGHT_CURLY
a '}' character -
LEFT_BRACE
a '[' character -
RIGHT_BRACE
a ']' character -
EQUAL_SIGN
a '=' character -
COMMA
a ',' character -
NONE
not a token -
ERROR
an error occurred -
CHAR
a character -
BINARY
a binary integer -
OCTAL
an octal integer -
INT
an integer -
HEX
a hex integer -
FLOAT
a floating point number -
STRING
a string -
SYMBOL
a symbol -
IDENTIFIER
an identifier -
IDENTIFIER_NULL
a null identifier -
COMMENT_SINGLE
one line comment -
COMMENT_MULTI
multi line comment
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
of
Create a new TokenType for the provided value- Parameters:
value
- the enum value- Returns:
- the enum for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-