public enum TokenType extends Enum<TokenType>
Enum Constant and Description |
---|
BlockComment |
CharLiteral |
Define |
Elif |
Else |
Endif |
Error |
If |
LineComment |
Source |
StringLiteral |
TextBlock |
Undef |
Warning |
Whitespace |
Modifier and Type | Method and Description |
---|---|
String |
getDirective() |
boolean |
isDirective() |
static TokenType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TokenType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TokenType Whitespace
public static final TokenType LineComment
public static final TokenType BlockComment
public static final TokenType StringLiteral
public static final TokenType CharLiteral
public static final TokenType TextBlock
public static final TokenType If
public static final TokenType Elif
public static final TokenType Else
public static final TokenType Endif
public static final TokenType Define
public static final TokenType Undef
public static final TokenType Error
public static final TokenType Warning
public static final TokenType Source
public static TokenType[] values()
for (TokenType c : TokenType.values()) System.out.println(c);
public static TokenType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isDirective()
public String getDirective()
Copyright © 2024. All rights reserved.