Enum Class TokenChannel
- All Implemented Interfaces:
Serializable,Comparable<TokenChannel>,Constable
A list of the possible channels a token can have. This must correspond to the
generated Lexer's
channelNames array.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe custom comments channelThe default channelThe default hidden channelThe custom preprocessor channelThe custom whitespace channel -
Method Summary
Modifier and TypeMethodDescriptionstatic TokenChannelgetTokenChannel(Token token) Returns the channel enum for this token's integer channel number.static TokenChannelReturns the enum constant of this class with the specified name.static TokenChannel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
The default channel -
HIDDEN
The default hidden channel -
WHITESPACE
The custom whitespace channel -
COMMENTS
The custom comments channel -
PREPROCESSOR
The custom preprocessor channel
-
-
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
-
getTokenChannel
Returns the channel enum for this token's integer channel number.- Parameters:
token- The token to get the channel of- Returns:
- The channel of the token
-