Enum Class Tree.Kind
- All Implemented Interfaces:
Serializable, Comparable<Tree.Kind>, Constable
- Enclosing interface:
Tree
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUsed for instances ofBinaryTreerepresenting bitwise and logical "and"&.Used for instances ofCompoundAssignmentTreerepresenting bitwise and logical "and" assignment&=.Used for instances ofArrayAccessTree.Used for instances ofArrayLiteralTree.Used for instances ofAssignmentTree.Used for instances ofUnaryTreerepresenting bitwise complement operator~.Used for instances ofBlockTree.Used for instances ofLiteralTreerepresenting a boolean literal expression of typeboolean.Used for instances ofBreakTree.Used for instances ofCaseTree.Used for instances ofCatchTree.Used for instances ofClassDeclarationTree.Used for instances ofClassExpressionTree.Used for instances ofBinaryTreerepresenting comma,.Used for instances ofCompilationUnitTree.Used for instances ofBinaryTreerepresenting conditional-and&&.Used for instances ofConditionalExpressionTree.Used for instances ofBinaryTreerepresenting conditional-or||.Used for instances ofContinueTree.Used for instances ofDebuggerTree.Used for instances ofUnaryTreerepresenting logical delete operatordelete.Used for instances ofBinaryTreerepresenting division/.Used for instances ofCompoundAssignmentTreerepresenting division assignment/=.Used for instances ofDoWhileLoopTree.Used for instances ofEmptyStatementTree.Used for instances ofBinaryTreerepresenting equal-to==.Used for instances ofErroneousTree.Used for instances ofExportEntryTree.Used for instances ofExpressionStatementTree.Used for instances ofForInLoopTree.Used for instances ofForLoopTree.Used for instances ofFunctionDeclarationTree.Used for instances ofFunctionExpressionTree.Used for instances ofFunctionCallTree.Used for instances ofBinaryTreerepresenting greater-than>.Used for instances ofBinaryTreerepresenting greater-than-equal>=.Used for instances ofIdentifierTree.Used for instances ofIfTree.Used for instances ofImportEntryTree.Used for instances ofBinaryTreerepresenting in operatorin.Used for instances ofInstanceOfTree.Used for instances ofLabeledStatementTree.Used for instances ofBinaryTreerepresenting left shift<<.Used for instances ofCompoundAssignmentTreerepresenting left shift assignment<<=.Used for instances ofBinaryTreerepresenting less-than<.Used for instances ofBinaryTreerepresenting less-than-equal<=.Used for instances ofUnaryTreerepresenting logical complement operator!.Used for instances ofMemberSelectTree.Used for instances ofBinaryTreerepresenting subtraction-.Used for instances ofCompoundAssignmentTreerepresenting subtraction assignment-=.Used for instances ofModuleTree.Used for instances ofBinaryTreerepresenting multiplication*.Used for instances ofCompoundAssignmentTreerepresenting multiplication assignment*=.Used for instances ofNewTree.Used for instances ofBinaryTreerepresenting not-equal-to!=.Used for instances ofLiteralTreerepresenting the use ofnull.Used for instances ofLiteralTreerepresenting a number literal expression of typedouble.Used for instances ofObjectLiteralTree.Used for instances ofBinaryTreerepresenting bitwise and logical "or"|.Used for instances ofCompoundAssignmentTreerepresenting bitwise and logical "or" assignment|=.An implementation-reserved node.Used for instances ofParenthesizedTree.Used for instances ofBinaryTreerepresenting addition or string concatenation+.Used for instances ofCompoundAssignmentTreerepresenting addition or string concatenation assignment+=.Used for instances ofUnaryTreerepresenting postfix decrement operator--.Used for instances ofUnaryTreerepresenting postfix increment operator++.Used for instances ofUnaryTreerepresenting prefix decrement operator--.Used for instances ofUnaryTreerepresenting prefix increment operator++.Used for instances ofPropertyTree.Used for instances ofRegExpLiteralTree.Used for instances ofBinaryTreerepresenting remainder%.Used for instances ofCompoundAssignmentTreerepresenting remainder assignment%=.Used for instances ofReturnTree.Used for instances ofBinaryTreerepresenting right shift>>.Used for instances ofCompoundAssignmentTreerepresenting right shift assignment>>=.Used for instances ofSpreadTreerepresenting spread "operator" for arrays and function call arguments.Used for instances ofBinaryTreerepresenting equal-to===.Used for instances ofBinaryTreerepresenting not-equal-to!==.Used for instances ofLiteralTreerepresenting a string literal expression of typeString.Used for instances ofSwitchTree.Used for instances ofTemplateLiteralTree.Used for instances ofThrowTree.Used for instances ofTryTree.Used for instances ofUnaryTreerepresenting logical typeof operatortypeof.Used for instances ofUnaryTreerepresenting unary minus operator-.Used for instances ofUnaryTreerepresenting unary plus operator+.Used for instances ofBinaryTreerepresenting unsigned right shift>>>.Used for instances ofCompoundAssignmentTreerepresenting unsigned right shift assignment>>>=.Used for instances ofVariableTree.Used for instances ofUnaryTreerepresenting logical void operatorvoid.Used for instances ofWhileLoopTree.Used for instances ofWithTree.Used for instances ofBinaryTreerepresenting bitwise and logical "xor"^.Used for instances ofCompoundAssignmentTreerepresenting bitwise and logical "xor" assignment^=.Used for instances ofYieldTreerepresenting (generator) yield expressionyield expr. -
Method Summary
Modifier and TypeMethodDescriptionReturns the associated interface type that uses this kind.booleanReturns if this is an expression tree kind or not.booleanReturns if this is a literal tree kind or not.booleanReturns if this is a statement tree kind or not.static Tree.KindReturns the enum constant of this class with the specified name.static Tree.Kind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ARRAY_ACCESS
Used for instances ofArrayAccessTree. -
ARRAY_LITERAL
Used for instances ofArrayLiteralTree. -
ASSIGNMENT
Used for instances ofAssignmentTree. -
BLOCK
-
BREAK
-
CLASS
Used for instances ofClassDeclarationTree. -
CLASS_EXPRESSION
Used for instances ofClassExpressionTree. -
CASE
-
CATCH
-
COMPILATION_UNIT
Used for instances ofCompilationUnitTree. -
CONDITIONAL_EXPRESSION
Used for instances ofConditionalExpressionTree. -
CONTINUE
Used for instances ofContinueTree. -
DO_WHILE_LOOP
Used for instances ofDoWhileLoopTree. -
DEBUGGER
Used for instances ofDebuggerTree. -
FOR_IN_LOOP
Used for instances ofForInLoopTree. -
FUNCTION_EXPRESSION
Used for instances ofFunctionExpressionTree. -
ERROR
Used for instances ofErroneousTree. -
EXPRESSION_STATEMENT
Used for instances ofExpressionStatementTree. -
MEMBER_SELECT
Used for instances ofMemberSelectTree. -
FOR_LOOP
Used for instances ofForLoopTree. -
IDENTIFIER
Used for instances ofIdentifierTree. -
IF
-
INSTANCE_OF
Used for instances ofInstanceOfTree. -
LABELED_STATEMENT
Used for instances ofLabeledStatementTree. -
MODULE
Used for instances ofModuleTree. -
EXPORT_ENTRY
Used for instances ofExportEntryTree. -
IMPORT_ENTRY
Used for instances ofImportEntryTree. -
FUNCTION
Used for instances ofFunctionDeclarationTree. -
FUNCTION_INVOCATION
Used for instances ofFunctionCallTree. -
NEW
-
OBJECT_LITERAL
Used for instances ofObjectLiteralTree. -
PARENTHESIZED
Used for instances ofParenthesizedTree. -
PROPERTY
Used for instances ofPropertyTree. -
REGEXP_LITERAL
Used for instances ofRegExpLiteralTree. -
TEMPLATE_LITERAL
Used for instances ofTemplateLiteralTree. -
RETURN
Used for instances ofReturnTree. -
EMPTY_STATEMENT
Used for instances ofEmptyStatementTree. -
SWITCH
Used for instances ofSwitchTree. -
THROW
-
TRY
-
VARIABLE
Used for instances ofVariableTree. -
WHILE_LOOP
Used for instances ofWhileLoopTree. -
WITH
-
POSTFIX_INCREMENT
-
POSTFIX_DECREMENT
-
PREFIX_INCREMENT
-
PREFIX_DECREMENT
-
UNARY_PLUS
-
UNARY_MINUS
-
BITWISE_COMPLEMENT
-
LOGICAL_COMPLEMENT
-
DELETE
-
TYPEOF
-
VOID
-
COMMA
Used for instances ofBinaryTreerepresenting comma,. -
MULTIPLY
Used for instances ofBinaryTreerepresenting multiplication*. -
DIVIDE
Used for instances ofBinaryTreerepresenting division/. -
REMAINDER
Used for instances ofBinaryTreerepresenting remainder%. -
PLUS
Used for instances ofBinaryTreerepresenting addition or string concatenation+. -
MINUS
Used for instances ofBinaryTreerepresenting subtraction-. -
LEFT_SHIFT
Used for instances ofBinaryTreerepresenting left shift<<. -
RIGHT_SHIFT
Used for instances ofBinaryTreerepresenting right shift>>. -
UNSIGNED_RIGHT_SHIFT
Used for instances ofBinaryTreerepresenting unsigned right shift>>>. -
LESS_THAN
Used for instances ofBinaryTreerepresenting less-than<. -
GREATER_THAN
Used for instances ofBinaryTreerepresenting greater-than>. -
LESS_THAN_EQUAL
Used for instances ofBinaryTreerepresenting less-than-equal<=. -
GREATER_THAN_EQUAL
Used for instances ofBinaryTreerepresenting greater-than-equal>=. -
IN
Used for instances ofBinaryTreerepresenting in operatorin. -
EQUAL_TO
Used for instances ofBinaryTreerepresenting equal-to==. -
NOT_EQUAL_TO
Used for instances ofBinaryTreerepresenting not-equal-to!=. -
STRICT_EQUAL_TO
Used for instances ofBinaryTreerepresenting equal-to===. -
STRICT_NOT_EQUAL_TO
Used for instances ofBinaryTreerepresenting not-equal-to!==. -
AND
Used for instances ofBinaryTreerepresenting bitwise and logical "and"&. -
XOR
Used for instances ofBinaryTreerepresenting bitwise and logical "xor"^. -
OR
Used for instances ofBinaryTreerepresenting bitwise and logical "or"|. -
CONDITIONAL_AND
Used for instances ofBinaryTreerepresenting conditional-and&&. -
CONDITIONAL_OR
Used for instances ofBinaryTreerepresenting conditional-or||. -
MULTIPLY_ASSIGNMENT
Used for instances ofCompoundAssignmentTreerepresenting multiplication assignment*=. -
DIVIDE_ASSIGNMENT
Used for instances ofCompoundAssignmentTreerepresenting division assignment/=. -
REMAINDER_ASSIGNMENT
Used for instances ofCompoundAssignmentTreerepresenting remainder assignment%=. -
PLUS_ASSIGNMENT
Used for instances ofCompoundAssignmentTreerepresenting addition or string concatenation assignment+=. -
MINUS_ASSIGNMENT
Used for instances ofCompoundAssignmentTreerepresenting subtraction assignment-=. -
LEFT_SHIFT_ASSIGNMENT
Used for instances ofCompoundAssignmentTreerepresenting left shift assignment<<=. -
RIGHT_SHIFT_ASSIGNMENT
Used for instances ofCompoundAssignmentTreerepresenting right shift assignment>>=. -
UNSIGNED_RIGHT_SHIFT_ASSIGNMENT
Used for instances ofCompoundAssignmentTreerepresenting unsigned right shift assignment>>>=. -
AND_ASSIGNMENT
Used for instances ofCompoundAssignmentTreerepresenting bitwise and logical "and" assignment&=. -
XOR_ASSIGNMENT
Used for instances ofCompoundAssignmentTreerepresenting bitwise and logical "xor" assignment^=. -
OR_ASSIGNMENT
Used for instances ofCompoundAssignmentTreerepresenting bitwise and logical "or" assignment|=. -
SPREAD
Used for instances ofSpreadTreerepresenting spread "operator" for arrays and function call arguments. -
YIELD
-
NUMBER_LITERAL
Used for instances ofLiteralTreerepresenting a number literal expression of typedouble. -
BOOLEAN_LITERAL
Used for instances ofLiteralTreerepresenting a boolean literal expression of typeboolean. -
STRING_LITERAL
Used for instances ofLiteralTreerepresenting a string literal expression of typeString. -
NULL_LITERAL
Used for instances ofLiteralTreerepresenting the use ofnull. -
OTHER
An implementation-reserved node. This is the not the node you are looking for.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
asInterface
-
isLiteral
public boolean isLiteral()Returns if this is a literal tree kind or not.- Returns:
- true if this is a literal tree kind, false otherwise
-
isExpression
public boolean isExpression()Returns if this is an expression tree kind or not.- Returns:
- true if this is an expression tree kind, false otherwise
-
isStatement
public boolean isStatement()Returns if this is a statement tree kind or not.- Returns:
- true if this is a statement tree kind, false otherwise
-