public enum TokenType extends java.lang.Enum<TokenType>
TokenSourceFragment
token.
Note: These types mirrors the methods of TokenWriter
Enum Constant and Description |
---|
CODE_SNIPPET |
COMMENT |
DEC_TAB |
IDENTIFIER |
INC_TAB |
KEYWORD |
LITERAL |
NEW_LINE |
OPERATOR |
SEPARATOR |
SPACE |
Modifier and Type | Method and Description |
---|---|
boolean |
isTab() |
static TokenType |
valueOf(java.lang.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 SEPARATOR
public static final TokenType OPERATOR
public static final TokenType LITERAL
public static final TokenType KEYWORD
public static final TokenType IDENTIFIER
public static final TokenType CODE_SNIPPET
public static final TokenType COMMENT
public static final TokenType NEW_LINE
public static final TokenType INC_TAB
public static final TokenType DEC_TAB
public static final TokenType SPACE
public static TokenType[] values()
for (TokenType c : TokenType.values()) System.out.println(c);
public static TokenType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isTab()
Copyright © 2007–2021 Inria. All rights reserved.