On this page
Enum Class Tree.Kind
- All Implemented Interfaces:
Serializable,Comparable<Tree.Kind>,Constable
- Enclosing interface:
-
Tree
public static enum Tree.Kind extends Enum<Tree.Kind>
Enumerates all kinds of trees.
Nested Class Summary
Nested classes/interfaces declared in class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Enum Constant Summary
| 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 &=.
|
ANNOTATED_TYPE |
Used for instances of AnnotatedTypeTree representing annotated types.
|
ANNOTATION |
Used for instances of AnnotationTree representing declaration annotations.
|
ANNOTATION_TYPE |
Used for instances of ClassTree representing annotation types.
|
ANY_PATTERN |
Preview.
Used for instances of BindingPatternTree.
|
ARRAY_ACCESS |
Used for instances of ArrayAccessTree.
|
ARRAY_TYPE |
Used for instances of ArrayTypeTree.
|
ASSERT |
Used for instances of AssertTree.
|
ASSIGNMENT |
Used for instances of AssignmentTree.
|
BINDING_PATTERN |
Used for instances of BindingPatternTree.
|
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.
|
CHAR_LITERAL |
Used for instances of LiteralTree representing a character literal expression of type char.
|
CLASS |
Used for instances of ClassTree representing classes.
|
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 ||.
|
CONSTANT_CASE_LABEL |
Used for instances of ConstantCaseLabelTree.
|
CONTINUE |
Used for instances of ContinueTree.
|
DECONSTRUCTION_PATTERN |
Used for instances of DeconstructionPatternTree.
|
DEFAULT_CASE_LABEL |
Used for instances of DefaultCaseLabelTree.
|
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.
|
DOUBLE_LITERAL |
Used for instances of LiteralTree representing a floating-point literal expression of type double.
|
EMPTY_STATEMENT |
Used for instances of EmptyStatementTree.
|
ENHANCED_FOR_LOOP |
Used for instances of EnhancedForLoopTree.
|
ENUM |
Used for instances of ClassTree representing enums.
|
EQUAL_TO |
Used for instances of BinaryTree representing equal-to ==.
|
ERRONEOUS |
Used for instances of ErroneousTree.
|
EXPORTS |
Used for instances of ExportsTree representing exports directives in a module declaration.
|
EXPRESSION_STATEMENT |
Used for instances of ExpressionStatementTree.
|
EXTENDS_WILDCARD |
Used for instances of WildcardTree representing an upper-bounded wildcard type argument.
|
FLOAT_LITERAL |
Used for instances of LiteralTree representing a floating-point literal expression of type float.
|
FOR_LOOP |
Used for instances of ForLoopTree.
|
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 |
Used for instances of ImportTree.
|
INSTANCE_OF |
Used for instances of InstanceOfTree.
|
INT_LITERAL |
Used for instances of LiteralTree representing an integral literal expression of type int.
|
INTERFACE |
Used for instances of ClassTree representing interfaces.
|
INTERSECTION_TYPE |
Used for instances of IntersectionTypeTree.
|
LABELED_STATEMENT |
Used for instances of LabeledStatementTree.
|
LAMBDA_EXPRESSION |
Used for instances of LambdaExpressionTree.
|
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 !.
|
LONG_LITERAL |
Used for instances of LiteralTree representing an integral literal expression of type long.
|
MEMBER_REFERENCE |
Used for instances of MemberReferenceTree.
|
MEMBER_SELECT |
Used for instances of MemberSelectTree.
|
METHOD |
Used for instances of MethodTree.
|
METHOD_INVOCATION |
Used for instances of MethodInvocationTree.
|
MINUS |
Used for instances of BinaryTree representing subtraction -.
|
MINUS_ASSIGNMENT |
Used for instances of CompoundAssignmentTree representing subtraction assignment -=.
|
MODIFIERS |
Used for instances of ModifiersTree.
|
MODULE |
Used for instances of ModuleTree representing module declarations.
|
MULTIPLY |
Used for instances of BinaryTree representing multiplication *.
|
MULTIPLY_ASSIGNMENT |
Used for instances of CompoundAssignmentTree representing multiplication assignment *=.
|
NEW_ARRAY |
Used for instances of NewArrayTree.
|
NEW_CLASS |
Used for instances of NewClassTree.
|
NOT_EQUAL_TO |
Used for instances of BinaryTree representing not-equal-to !=.
|
NULL_LITERAL |
Used for instances of LiteralTree representing the use of null.
|
OPENS |
Used for instances of ExportsTree representing opens directives in a module declaration.
|
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.
|
PACKAGE |
Used for instances of PackageTree.
|
PARAMETERIZED_TYPE |
Used for instances of ParameterizedTypeTree.
|
PARENTHESIZED |
Used for instances of ParenthesizedTree.
|
PATTERN_CASE_LABEL |
Used for instances of PatternCaseLabelTree.
|
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 ++.
|
PRIMITIVE_TYPE |
Used for instances of PrimitiveTypeTree.
|
PROVIDES |
Used for instances of ProvidesTree representing provides directives in a module declaration.
|
RECORD |
Used for instances of ClassTree representing records.
|
REMAINDER |
Used for instances of BinaryTree representing remainder %.
|
REMAINDER_ASSIGNMENT |
Used for instances of CompoundAssignmentTree representing remainder assignment %=.
|
REQUIRES |
Used for instances of RequiresTree representing requires directives in a module declaration.
|
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 >>=.
|
STRING_LITERAL |
Used for instances of LiteralTree representing a string literal expression of type String.
|
SUPER_WILDCARD |
Used for instances of WildcardTree representing a lower-bounded wildcard type argument.
|
SWITCH |
Used for instances of SwitchTree.
|
SWITCH_EXPRESSION |
Used for instances of SwitchExpressionTree.
|
SYNCHRONIZED |
Used for instances of SynchronizedTree.
|
TEMPLATE |
Preview.
Used for instances of StringTemplateTreePREVIEW.
|
THROW |
Used for instances of ThrowTree.
|
TRY |
Used for instances of TryTree.
|
TYPE_ANNOTATION |
Used for instances of AnnotationTree representing type annotations.
|
TYPE_CAST |
Used for instances of TypeCastTree.
|
TYPE_PARAMETER |
Used for instances of TypeParameterTree.
|
UNARY_MINUS |
Used for instances of UnaryTree representing unary minus operator -.
|
UNARY_PLUS |
Used for instances of UnaryTree representing unary plus operator +.
|
UNBOUNDED_WILDCARD |
Used for instances of WildcardTree representing an unbounded wildcard type argument.
|
UNION_TYPE |
Used for instances of UnionTypeTree.
|
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 >>>=.
|
USES |
Used for instances of UsesTree representing uses directives in a module declaration.
|
VARIABLE |
Used for instances of VariableTree.
|
WHILE_LOOP |
Used for instances of WhileLoopTree.
|
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.
|
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
Class |
asInterface() |
Returns the associated interface type that uses this kind.
|
static Tree.Kind |
valueOf |
Returns 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
ANNOTATED_TYPE
public static final Tree.Kind ANNOTATED_TYPE
Used for instances of
AnnotatedTypeTree representing annot