public enum JsTokenType extends java.lang.Enum<JsTokenType>
| Enum Constant and Description |
|---|
COMMENT |
ERROR |
KEYWORD |
NAME |
NUMBER |
PUNCTUATION |
REGEX |
STRING |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Optional<JsTokenType> |
byTokenType(com.google.javascript.jscomp.parsing.parser.TokenType tokenType) |
static java.util.Optional<JsTokenType> |
getByNode(com.google.javascript.rhino.Node node) |
static JsTokenType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JsTokenType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JsTokenType KEYWORD
public static final JsTokenType PUNCTUATION
public static final JsTokenType NAME
public static final JsTokenType STRING
public static final JsTokenType NUMBER
public static final JsTokenType REGEX
public static final JsTokenType ERROR
public static final JsTokenType COMMENT
public static JsTokenType[] values()
for (JsTokenType c : JsTokenType.values()) System.out.println(c);
public static JsTokenType 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 static java.util.Optional<JsTokenType> getByNode(com.google.javascript.rhino.Node node)
public static java.util.Optional<JsTokenType> byTokenType(com.google.javascript.jscomp.parsing.parser.TokenType tokenType)