Serializable
, Comparable<Tree.Kind>
public static enum Tree.Kind extends Enum<Tree.Kind>
Enum Constant | Description |
---|---|
AND |
Used for instances of
BinaryTree representing
bitwise and logical "and" & . |
AND_ASSIGNMENT |
Used for instances of
CompoundAssignmentTree representing
bitwise and logical "and" assignment &= . |
ARRAY_ACCESS |
Used for instances of
ArrayAccessTree . |
ARRAY_LITERAL |
Used for instances of
ArrayLiteralTree . |
ASSIGNMENT |
Used for instances of
AssignmentTree . |
BITWISE_COMPLEMENT |
Used for instances of
UnaryTree representing bitwise
complement operator ~ . |
BLOCK |
Used for instances of
BlockTree . |
BOOLEAN_LITERAL |
Used for instances of
LiteralTree representing
a boolean literal expression of type boolean . |
BREAK |
Used for instances of
BreakTree . |
CASE |
Used for instances of
CaseTree . |
CATCH |
Used for instances of
CatchTree . |
CLASS |
Used for instances of
ClassDeclarationTree . |
CLASS_EXPRESSION |
Used for instances of
ClassExpressionTree . |
COMMA |
Used for instances of
BinaryTree representing
comma , . |
COMPILATION_UNIT |
Used for instances of
CompilationUnitTree . |
CONDITIONAL_AND |
Used for instances of
BinaryTree representing
conditional-and && . |
CONDITIONAL_EXPRESSION |
Used for instances of
ConditionalExpressionTree . |
CONDITIONAL_OR |
Used for instances of
BinaryTree representing
conditional-or || . |
CONTINUE |
Used for instances of
ContinueTree . |
DEBUGGER |
Used for instances of
DebuggerTree . |
DELETE |
Used for instances of
UnaryTree representing logical
delete operator delete . |
DIVIDE |
Used for instances of
BinaryTree representing
division / . |
DIVIDE_ASSIGNMENT |
Used for instances of
CompoundAssignmentTree representing
division assignment /= . |
DO_WHILE_LOOP |
Used for instances of
DoWhileLoopTree . |
EMPTY_STATEMENT |
Used for instances of
EmptyStatementTree . |
EQUAL_TO |
Used for instances of
BinaryTree representing
equal-to == . |
ERROR |
Used for instances of
ErroneousTree . |
EXPORT_ENTRY |
Used for instances of
ExportEntryTree . |
EXPRESSION_STATEMENT |
Used for instances of
ExpressionStatementTree . |
FOR_IN_LOOP |
Used for instances of
ForInLoopTree . |
FOR_LOOP |
Used for instances of
ForLoopTree . |
FUNCTION |
Used for instances of
FunctionDeclarationTree . |
FUNCTION_EXPRESSION |
Used for instances of
FunctionExpressionTree . |
FUNCTION_INVOCATION |
Used for instances of
FunctionCallTree . |
GREATER_THAN |
Used for instances of
BinaryTree representing
greater-than > . |
GREATER_THAN_EQUAL |
Used for instances of
BinaryTree representing
greater-than-equal >= . |
IDENTIFIER |
Used for instances of
IdentifierTree . |
IF |
Used for instances of
IfTree . |
IMPORT_ENTRY |
Used for instances of
ImportEntryTree . |
IN |
Used for instances of
BinaryTree representing
in operator in . |
INSTANCE_OF |
Used for instances of
InstanceOfTree . |
LABELED_STATEMENT |
Used for instances of
LabeledStatementTree . |
LEFT_SHIFT |
Used for instances of
BinaryTree representing
left shift << . |
LEFT_SHIFT_ASSIGNMENT |
Used for instances of
CompoundAssignmentTree representing
left shift assignment <<= . |
LESS_THAN |
Used for instances of
BinaryTree representing
less-than < . |
LESS_THAN_EQUAL |
Used for instances of
BinaryTree representing
less-than-equal <= . |
LOGICAL_COMPLEMENT |
Used for instances of
UnaryTree representing logical
complement operator ! . |
MEMBER_SELECT |
Used for instances of
MemberSelectTree . |
MINUS |
Used for instances of
BinaryTree representing
subtraction - . |
MINUS_ASSIGNMENT |
Used for instances of
CompoundAssignmentTree representing
subtraction assignment -= . |
MODULE |
Used for instances of
ModuleTree . |
MULTIPLY |
Used for instances of
BinaryTree representing
multiplication * . |
MULTIPLY_ASSIGNMENT |
Used for instances of
CompoundAssignmentTree representing
multiplication assignment *= . |
NEW |
Used for instances of
NewTree . |
NOT_EQUAL_TO |
Used for instances of
BinaryTree representing
not-equal-to != . |
NULL_LITERAL |
Used for instances of
LiteralTree representing
the use of null . |
NUMBER_LITERAL |
Used for instances of
LiteralTree representing
a number literal expression of type double . |
OBJECT_LITERAL |
Used for instances of
ObjectLiteralTree . |
OR |
Used for instances of
BinaryTree representing
bitwise and logical "or" | . |
OR_ASSIGNMENT |
Used for instances of
CompoundAssignmentTree representing
bitwise and logical "or" assignment |= . |
OTHER |
An implementation-reserved node.
|
PARENTHESIZED |
Used for instances of
ParenthesizedTree . |
PLUS |
Used for instances of
BinaryTree representing
addition or string concatenation + . |
PLUS_ASSIGNMENT |
Used for instances of
CompoundAssignmentTree representing
addition or string concatenation assignment += . |
POSTFIX_DECREMENT |
Used for instances of
UnaryTree representing postfix
decrement operator -- . |
POSTFIX_INCREMENT |
Used for instances of
UnaryTree representing postfix
increment operator ++ . |
PREFIX_DECREMENT |
Used for instances of
UnaryTree representing prefix
decrement operator -- . |
PREFIX_INCREMENT |
Used for instances of
UnaryTree representing prefix
increment operator ++ . |
PROPERTY |
Used for instances of
PropertyTree . |
REGEXP_LITERAL |
Used for instances of
RegExpLiteralTree . |
REMAINDER |
Used for instances of
BinaryTree representing
remainder % . |
REMAINDER_ASSIGNMENT |
Used for instances of
CompoundAssignmentTree representing
remainder assignment %= . |
RETURN |
Used for instances of
ReturnTree . |
RIGHT_SHIFT |
Used for instances of
BinaryTree representing
right shift >> . |
RIGHT_SHIFT_ASSIGNMENT |
Used for instances of
CompoundAssignmentTree representing
right shift assignment >>= . |
SPREAD |
Used for instances of
SpreadTree representing
spread "operator" for arrays and function call arguments. |
STRICT_EQUAL_TO |
Used for instances of
BinaryTree representing
equal-to === . |
STRICT_NOT_EQUAL_TO |
Used for instances of
BinaryTree representing
not-equal-to !== . |
STRING_LITERAL |
Used for instances of
LiteralTree representing
a string literal expression of type String . |
SWITCH |
Used for instances of
SwitchTree . |
TEMPLATE_LITERAL |
Used for instances of
TemplateLiteralTree . |
THROW |
Used for instances of
ThrowTree . |
TRY |
Used for instances of
TryTree . |
TYPEOF |
Used for instances of
UnaryTree representing logical
typeof operator typeof . |
UNARY_MINUS |
Used for instances of
UnaryTree representing unary minus
operator - . |
UNARY_PLUS |
Used for instances of
UnaryTree representing unary plus
operator + . |
UNSIGNED_RIGHT_SHIFT |
Used for instances of
BinaryTree representing
unsigned right shift >>> . |
UNSIGNED_RIGHT_SHIFT_ASSIGNMENT |
Used for instances of
CompoundAssignmentTree representing
unsigned right shift assignment >>>= . |
VARIABLE |
Used for instances of
VariableTree . |
VOID |
Used for instances of
UnaryTree representing logical
void operator void . |
WHILE_LOOP |
Used for instances of
WhileLoopTree . |
WITH |
Used for instances of
WithTree . |
XOR |
Used for instances of
BinaryTree representing
bitwise and logical "xor" ^ . |
XOR_ASSIGNMENT |
Used for instances of
CompoundAssignmentTree representing
bitwise and logical "xor" assignment ^= . |
YIELD |
Used for instances of
YieldTree representing (generator)
yield expression yield expr . |
Modifier and Type | Method | Description |
---|---|---|
Class<? extends Tree> |
asInterface() |
Returns the associated interface type that uses this kind.
|
boolean |
isExpression() |
Returns if this is an expression tree kind or not.
|
boolean |
isLiteral() |
Returns if this is a literal tree kind or not.
|
boolean |
isStatement() |
Returns if this is a statement tree kind or not.
|
static Tree.Kind |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Tree.Kind[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Tree.Kind ARRAY_ACCESS
ArrayAccessTree
.public static final Tree.Kind ARRAY_LITERAL
ArrayLiteralTree
.public static final Tree.Kind ASSIGNMENT
AssignmentTree
.public static final Tree.Kind CLASS
ClassDeclarationTree
.public static final Tree.Kind CLASS_EXPRESSION
ClassExpressionTree
.public static final Tree.Kind COMPILATION_UNIT
CompilationUnitTree
.public static final Tree.Kind CONDITIONAL_EXPRESSION
ConditionalExpressionTree
.public static final Tree.Kind CONTINUE
ContinueTree
.public static final Tree.Kind DO_WHILE_LOOP
DoWhileLoopTree
.public static final Tree.Kind DEBUGGER
DebuggerTree
.public static final Tree.Kind FOR_IN_LOOP
ForInLoopTree
.public static final Tree.Kind FUNCTION_EXPRESSION
FunctionExpressionTree
.public static final Tree.Kind ERROR
ErroneousTree
.public static final Tree.Kind EXPRESSION_STATEMENT
ExpressionStatementTree
.public static final Tree.Kind MEMBER_SELECT
MemberSelectTree
.public static final Tree.Kind FOR_LOOP
ForLoopTree
.public static final Tree.Kind IDENTIFIER
IdentifierTree
.public static final Tree.Kind INSTANCE_OF
InstanceOfTree
.public static final Tree.Kind LABELED_STATEMENT
LabeledStatementTree
.public static final Tree.Kind MODULE
ModuleTree
.public static final Tree.Kind EXPORT_ENTRY
ExportEntryTree
.public static final Tree.Kind IMPORT_ENTRY
ImportEntryTree
.public static final Tree.Kind FUNCTION
FunctionDeclarationTree
.public static final Tree.Kind FUNCTION_INVOCATION
FunctionCallTree
.public static final Tree.Kind OBJECT_LITERAL
ObjectLiteralTree
.public static final Tree.Kind PARENTHESIZED
ParenthesizedTree
.public static final Tree.Kind PROPERTY
PropertyTree
.public static final Tree.Kind REGEXP_LITERAL
RegExpLiteralTree
.public static final Tree.Kind TEMPLATE_LITERAL
TemplateLiteralTree
.public static final Tree.Kind RETURN
ReturnTree
.public static final Tree.Kind EMPTY_STATEMENT
EmptyStatementTree
.public static final Tree.Kind SWITCH
SwitchTree
.public static final Tree.Kind VARIABLE
VariableTree
.public static final Tree.Kind WHILE_LOOP
WhileLoopTree
.public static final Tree.Kind POSTFIX_INCREMENT
UnaryTree
representing postfix
increment operator ++
.public static final Tree.Kind POSTFIX_DECREMENT
UnaryTree
representing postfix
decrement operator --
.public static final Tree.Kind PREFIX_INCREMENT
UnaryTree
representing prefix
increment operator ++
.public static final Tree.Kind PREFIX_DECREMENT
UnaryTree
representing prefix
decrement operator --
.public static final Tree.Kind UNARY_PLUS
UnaryTree
representing unary plus
operator +
.public static final Tree.Kind UNARY_MINUS
UnaryTree
representing unary minus
operator -
.public static final Tree.Kind BITWISE_COMPLEMENT
UnaryTree
representing bitwise
complement operator ~
.public static final Tree.Kind LOGICAL_COMPLEMENT
UnaryTree
representing logical
complement operator !
.public static final Tree.Kind DELETE
UnaryTree
representing logical
delete operator delete
.public static final Tree.Kind TYPEOF
UnaryTree
representing logical
typeof operator typeof
.public static final Tree.Kind VOID
UnaryTree
representing logical
void operator void
.public static final Tree.Kind COMMA
BinaryTree
representing
comma ,
.public static final Tree.Kind MULTIPLY
BinaryTree
representing
multiplication *
.public static final Tree.Kind DIVIDE
BinaryTree
representing
division /
.public static final Tree.Kind REMAINDER
BinaryTree
representing
remainder %
.public static final Tree.Kind PLUS
BinaryTree
representing
addition or string concatenation +
.public static final Tree.Kind MINUS
BinaryTree
representing
subtraction -
.public static final Tree.Kind LEFT_SHIFT
BinaryTree
representing
left shift <<
.public static final Tree.Kind RIGHT_SHIFT
BinaryTree
representing
right shift >>
.public static final Tree.Kind UNSIGNED_RIGHT_SHIFT
BinaryTree
representing
unsigned right shift >>>
.public static final Tree.Kind LESS_THAN
BinaryTree
representing
less-than <
.public static final Tree.Kind GREATER_THAN
BinaryTree
representing
greater-than >
.public static final Tree.Kind LESS_THAN_EQUAL
BinaryTree
representing
less-than-equal <=
.public static final Tree.Kind GREATER_THAN_EQUAL
BinaryTree
representing
greater-than-equal >=
.public static final Tree.Kind IN
BinaryTree
representing
in operator in
.public static final Tree.Kind EQUAL_TO
BinaryTree
representing
equal-to ==
.public static final Tree.Kind NOT_EQUAL_TO
BinaryTree
representing
not-equal-to !=
.public static final Tree.Kind STRICT_EQUAL_TO
BinaryTree
representing
equal-to ===
.public static final Tree.Kind STRICT_NOT_EQUAL_TO
BinaryTree
representing
not-equal-to !==
.public static final Tree.Kind AND
BinaryTree
representing
bitwise and logical "and" &
.public static final Tree.Kind XOR
BinaryTree
representing
bitwise and logical "xor" ^
.public static final Tree.Kind OR
BinaryTree
representing
bitwise and logical "or" |
.public static final Tree.Kind CONDITIONAL_AND
BinaryTree
representing
conditional-and &&
.public static final Tree.Kind CONDITIONAL_OR
BinaryTree
representing
conditional-or ||
.public static final Tree.Kind MULTIPLY_ASSIGNMENT
CompoundAssignmentTree
representing
multiplication assignment *=
.public static final Tree.Kind DIVIDE_ASSIGNMENT
CompoundAssignmentTree
representing
division assignment /=
.public static final Tree.Kind REMAINDER_ASSIGNMENT
CompoundAssignmentTree
representing
remainder assignment %=
.public static final Tree.Kind PLUS_ASSIGNMENT
CompoundAssignmentTree
representing
addition or string concatenation assignment +=
.public static final Tree.Kind MINUS_ASSIGNMENT
CompoundAssignmentTree
representing
subtraction assignment -=
.public static final Tree.Kind LEFT_SHIFT_ASSIGNMENT
CompoundAssignmentTree
representing
left shift assignment <<=
.public static final Tree.Kind RIGHT_SHIFT_ASSIGNMENT
CompoundAssignmentTree
representing
right shift assignment >>=
.public static final Tree.Kind UNSIGNED_RIGHT_SHIFT_ASSIGNMENT
CompoundAssignmentTree
representing
unsigned right shift assignment >>>=
.public static final Tree.Kind AND_ASSIGNMENT
CompoundAssignmentTree
representing
bitwise and logical "and" assignment &=
.public static final Tree.Kind XOR_ASSIGNMENT
CompoundAssignmentTree
representing
bitwise and logical "xor" assignment ^=
.public static final Tree.Kind OR_ASSIGNMENT
CompoundAssignmentTree
representing
bitwise and logical "or" assignment |=
.public static final Tree.Kind SPREAD
SpreadTree
representing
spread "operator" for arrays and function call arguments.public static final Tree.Kind YIELD
YieldTree
representing (generator)
yield expression yield expr
.public static final Tree.Kind NUMBER_LITERAL
LiteralTree
representing
a number literal expression of type double
.public static final Tree.Kind BOOLEAN_LITERAL
LiteralTree
representing
a boolean literal expression of type boolean
.public static final Tree.Kind STRING_LITERAL
LiteralTree
representing
a string literal expression of type String
.public static final Tree.Kind NULL_LITERAL
LiteralTree
representing
the use of null
.public static final Tree.Kind OTHER
public static Tree.Kind[] values()
for (Tree.Kind c : Tree.Kind.values()) System.out.println(c);
public static Tree.Kind 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 Class<? extends Tree> asInterface()
public boolean isLiteral()
public boolean isExpression()
public boolean isStatement()
Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 2014, 2016, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Debian+0-9b148-1