public enum Keywords extends Enum<Keywords>
Enum Constant and Description |
---|
BREAK |
CASE |
CATCH |
CLASS |
CONST |
CONTINUE |
DEBUGGER |
DECLARE |
DEFAULT |
DELETE |
DO |
ELSE |
ENUM |
EXPORT |
EXTENDS |
FALSE |
FINALLY |
FOR |
FUNCTION |
IF |
IMPLEMENTS |
IMPORT |
IN |
INSTANCEOF |
INTERFACE |
LET |
MODULE |
NAMESPACE |
NEW |
NULL |
PACKAGE |
PRIVATE |
PROTECTED |
PUBLIC |
RETURN |
STATIC |
SUPER |
SWITCH |
THIS |
THROW |
TRUE |
TRY |
TYPE |
TYPEOF |
VAR |
VOID |
WHILE |
WITH |
YIELD |
Modifier and Type | Method and Description |
---|---|
static Keywords |
get(String value) |
static Keywords |
get(TokenType token) |
static TokenType |
getTokenType(String value) |
static boolean |
isKeyword(String value) |
static boolean |
isKeyword(TokenType token) |
static boolean |
isStrictKeyword(TokenType token)
Returns true if
token is a "future reserved word" which can
be used as a variable identifier, but only in non-strict mode. |
static boolean |
isTypeScriptSpecificKeyword(String value) |
String |
toString() |
static Keywords |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Keywords[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Keywords BREAK
public static final Keywords CASE
public static final Keywords CATCH
public static final Keywords CONTINUE
public static final Keywords DEBUGGER
public static final Keywords DEFAULT
public static final Keywords DELETE
public static final Keywords DO
public static final Keywords ELSE
public static final Keywords FINALLY
public static final Keywords FOR
public static final Keywords FUNCTION
public static final Keywords IF
public static final Keywords IN
public static final Keywords INSTANCEOF
public static final Keywords NEW
public static final Keywords RETURN
public static final Keywords SWITCH
public static final Keywords THIS
public static final Keywords THROW
public static final Keywords TRY
public static final Keywords TYPEOF
public static final Keywords VAR
public static final Keywords VOID
public static final Keywords WHILE
public static final Keywords WITH
public static final Keywords CLASS
public static final Keywords CONST
public static final Keywords ENUM
public static final Keywords EXPORT
public static final Keywords EXTENDS
public static final Keywords IMPORT
public static final Keywords SUPER
public static final Keywords IMPLEMENTS
public static final Keywords INTERFACE
public static final Keywords LET
public static final Keywords PACKAGE
public static final Keywords PRIVATE
public static final Keywords PROTECTED
public static final Keywords PUBLIC
public static final Keywords STATIC
public static final Keywords YIELD
public static final Keywords NULL
public static final Keywords TRUE
public static final Keywords FALSE
public static final Keywords DECLARE
public static final Keywords TYPE
public static final Keywords MODULE
public static final Keywords NAMESPACE
public static Keywords[] values()
for (Keywords c : Keywords.values()) System.out.println(c);
public static Keywords 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 static boolean isKeyword(String value)
public static boolean isKeyword(TokenType token)
public static boolean isTypeScriptSpecificKeyword(String value)
public static boolean isStrictKeyword(TokenType token)
token
is a "future reserved word" which can
be used as a variable identifier, but only in non-strict mode.Copyright © 2009-2016 Google. All Rights Reserved.