Enum ParseTreeType
- java.lang.Object
-
- java.lang.Enum<ParseTreeType>
-
- com.google.javascript.jscomp.parsing.parser.trees.ParseTreeType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ParseTreeType>
public enum ParseTreeType extends java.lang.Enum<ParseTreeType>
The types of concrete parse trees. The name of the ParseTreeType must match the name of the class that it applies to. For example the DerivedTree class should use ParseTreeType.DERIVED.
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ParseTreeType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ParseTreeType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PROGRAM
public static final ParseTreeType PROGRAM
-
FUNCTION_DECLARATION
public static final ParseTreeType FUNCTION_DECLARATION
-
BLOCK
public static final ParseTreeType BLOCK
-
VARIABLE_STATEMENT
public static final ParseTreeType VARIABLE_STATEMENT
-
VARIABLE_DECLARATION
public static final ParseTreeType VARIABLE_DECLARATION
-
EMPTY_STATEMENT
public static final ParseTreeType EMPTY_STATEMENT
-
EXPRESSION_STATEMENT
public static final ParseTreeType EXPRESSION_STATEMENT
-
IF_STATEMENT
public static final ParseTreeType IF_STATEMENT
-
DO_WHILE_STATEMENT
public static final ParseTreeType DO_WHILE_STATEMENT
-
WHILE_STATEMENT
public static final ParseTreeType WHILE_STATEMENT
-
FOR_IN_STATEMENT
public static final ParseTreeType FOR_IN_STATEMENT
-
FOR_STATEMENT
public static final ParseTreeType FOR_STATEMENT
-
VARIABLE_DECLARATION_LIST
public static final ParseTreeType VARIABLE_DECLARATION_LIST
-
CONTINUE_STATEMENT
public static final ParseTreeType CONTINUE_STATEMENT
-
BREAK_STATEMENT
public static final ParseTreeType BREAK_STATEMENT
-
RETURN_STATEMENT
public static final ParseTreeType RETURN_STATEMENT
-
WITH_STATEMENT
public static final ParseTreeType WITH_STATEMENT
-
CASE_CLAUSE
public static final ParseTreeType CASE_CLAUSE
-
DEFAULT_CLAUSE
public static final ParseTreeType DEFAULT_CLAUSE
-
SWITCH_STATEMENT
public static final ParseTreeType SWITCH_STATEMENT
-
LABELLED_STATEMENT
public static final ParseTreeType LABELLED_STATEMENT
-
THROW_STATEMENT
public static final ParseTreeType THROW_STATEMENT
-
CATCH
public static final ParseTreeType CATCH
-
TRY_STATEMENT
public static final ParseTreeType TRY_STATEMENT
-
DEBUGGER_STATEMENT
public static final ParseTreeType DEBUGGER_STATEMENT
-
THIS_EXPRESSION
public static final ParseTreeType THIS_EXPRESSION
-
IDENTIFIER_EXPRESSION
public static final ParseTreeType IDENTIFIER_EXPRESSION
-
LITERAL_EXPRESSION
public static final ParseTreeType LITERAL_EXPRESSION
-
ARRAY_LITERAL_EXPRESSION
public static final ParseTreeType ARRAY_LITERAL_EXPRESSION
-
OBJECT_LITERAL_EXPRESSION
public static final ParseTreeType OBJECT_LITERAL_EXPRESSION
-
COMPREHENSION
public static final ParseTreeType COMPREHENSION
-
COMPREHENSION_IF
public static final ParseTreeType COMPREHENSION_IF
-
COMPREHENSION_FOR
public static final ParseTreeType COMPREHENSION_FOR
-
GET_ACCESSOR
public static final ParseTreeType GET_ACCESSOR
-
SET_ACCESSOR
public static final ParseTreeType SET_ACCESSOR
-
PROPERTY_NAME_ASSIGNMENT
public static final ParseTreeType PROPERTY_NAME_ASSIGNMENT
-
COMPUTED_PROPERTY_DEFINITION
public static final ParseTreeType COMPUTED_PROPERTY_DEFINITION
-
COMPUTED_PROPERTY_GETTER
public static final ParseTreeType COMPUTED_PROPERTY_GETTER
-
COMPUTED_PROPERTY_METHOD
public static final ParseTreeType COMPUTED_PROPERTY_METHOD
-
COMPUTED_PROPERTY_SETTER
public static final ParseTreeType COMPUTED_PROPERTY_SETTER
-
MISSING_PRIMARY_EXPRESSION
public static final ParseTreeType MISSING_PRIMARY_EXPRESSION
-
COMMA_EXPRESSION
public static final ParseTreeType COMMA_EXPRESSION
-
BINARY_OPERATOR
public static final ParseTreeType BINARY_OPERATOR
-
CONDITIONAL_EXPRESSION
public static final ParseTreeType CONDITIONAL_EXPRESSION
-
UNARY_EXPRESSION
public static final ParseTreeType UNARY_EXPRESSION
-
UPDATE_EXPRESSION
public static final ParseTreeType UPDATE_EXPRESSION
-
MEMBER_EXPRESSION
public static final ParseTreeType MEMBER_EXPRESSION
-
OPT_CHAIN_MEMBER_EXPRESSION
public static final ParseTreeType OPT_CHAIN_MEMBER_EXPRESSION
-
NEW_EXPRESSION
public static final ParseTreeType NEW_EXPRESSION
-
ARGUMENT_LIST
public static final ParseTreeType ARGUMENT_LIST
-
CALL_EXPRESSION
public static final ParseTreeType CALL_EXPRESSION
-
OPT_CHAIN__CALL_EXPRESSION
public static final ParseTreeType OPT_CHAIN__CALL_EXPRESSION
-
CLASS_DECLARATION
public static final ParseTreeType CLASS_DECLARATION
-
MEMBER_LOOKUP_EXPRESSION
public static final ParseTreeType MEMBER_LOOKUP_EXPRESSION
-
OPT_CHAIN_MEMBER_LOOKUP_EXPRESSION
public static final ParseTreeType OPT_CHAIN_MEMBER_LOOKUP_EXPRESSION
-
PAREN_EXPRESSION
public static final ParseTreeType PAREN_EXPRESSION
-
FINALLY
public static final ParseTreeType FINALLY
-
SUPER_EXPRESSION
public static final ParseTreeType SUPER_EXPRESSION
-
ARRAY_PATTERN
public static final ParseTreeType ARRAY_PATTERN
-
OBJECT_PATTERN
public static final ParseTreeType OBJECT_PATTERN
-
FORMAL_PARAMETER_LIST
public static final ParseTreeType FORMAL_PARAMETER_LIST
-
ITER_SPREAD
public static final ParseTreeType ITER_SPREAD
-
OBJECT_SPREAD
public static final ParseTreeType OBJECT_SPREAD
-
NULL
public static final ParseTreeType NULL
-
ITER_REST
public static final ParseTreeType ITER_REST
-
OBJECT_REST
public static final ParseTreeType OBJECT_REST
-
MODULE_IMPORT
public static final ParseTreeType MODULE_IMPORT
-
EXPORT_DECLARATION
public static final ParseTreeType EXPORT_DECLARATION
-
EXPORT_SPECIFIER
public static final ParseTreeType EXPORT_SPECIFIER
-
IMPORT_DECLARATION
public static final ParseTreeType IMPORT_DECLARATION
-
IMPORT_SPECIFIER
public static final ParseTreeType IMPORT_SPECIFIER
-
FOR_OF_STATEMENT
public static final ParseTreeType FOR_OF_STATEMENT
-
FOR_AWAIT_OF_STATEMENT
public static final ParseTreeType FOR_AWAIT_OF_STATEMENT
-
YIELD_EXPRESSION
public static final ParseTreeType YIELD_EXPRESSION
-
DEFAULT_PARAMETER
public static final ParseTreeType DEFAULT_PARAMETER
-
TEMPLATE_LITERAL_EXPRESSION
public static final ParseTreeType TEMPLATE_LITERAL_EXPRESSION
-
TEMPLATE_LITERAL_PORTION
public static final ParseTreeType TEMPLATE_LITERAL_PORTION
-
TEMPLATE_SUBSTITUTION
public static final ParseTreeType TEMPLATE_SUBSTITUTION
-
OPTIONAL_PARAMETER
public static final ParseTreeType OPTIONAL_PARAMETER
-
NEW_TARGET_EXPRESSION
public static final ParseTreeType NEW_TARGET_EXPRESSION
-
AWAIT_EXPRESSION
public static final ParseTreeType AWAIT_EXPRESSION
-
DYNAMIC_IMPORT_EXPRESSION
public static final ParseTreeType DYNAMIC_IMPORT_EXPRESSION
-
IMPORT_META_EXPRESSION
public static final ParseTreeType IMPORT_META_EXPRESSION
-
-
Method Detail
-
values
public static ParseTreeType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ParseTreeType c : ParseTreeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ParseTreeType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-