- All Implemented Interfaces:
Serializable,Comparable<Tree.Kind>,Constable
- Enclosing interface:
- Tree
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 ConstantsEnum ConstantDescriptionUsed for instances ofBinaryTreerepresenting bitwise and logical "and"&.Used for instances ofCompoundAssignmentTreerepresenting bitwise and logical "and" assignment&=.Used for instances ofAnnotatedTypeTreerepresenting annotated types.Used for instances ofAnnotationTreerepresenting declaration annotations.Used for instances ofClassTreerepresenting annotation types.Used for instances ofArrayAccessTree.Used for instances ofArrayTypeTree.Used for instances ofAssertTree.Used for instances ofAssignmentTree.Used for instances ofBindingPatternTree.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 ofLiteralTreerepresenting a character literal expression of typechar.Used for instances ofClassTreerepresenting classes.Used for instances ofCompilationUnitTree.Used for instances ofBinaryTreerepresenting conditional-and&&.Used for instances ofConditionalExpressionTree.Used for instances ofBinaryTreerepresenting conditional-or||.Used for instances ofContinueTree.Preview.Used for instances ofDefaultCaseLabelTreePREVIEW.Used for instances ofBinaryTreerepresenting division/.Used for instances ofCompoundAssignmentTreerepresenting division assignment/=.Used for instances ofDoWhileLoopTree.Used for instances ofLiteralTreerepresenting a floating-point literal expression of typedouble.Used for instances ofEmptyStatementTree.Used for instances ofEnhancedForLoopTree.Used for instances ofClassTreerepresenting enums.Used for instances ofBinaryTreerepresenting equal-to==.Used for instances ofErroneousTree.Used for instances ofExportsTreerepresenting exports directives in a module declaration.Used for instances ofExpressionStatementTree.Used for instances ofWildcardTreerepresenting an extends bounded wildcard type argument.Used for instances ofLiteralTreerepresenting a floating-point literal expression of typefloat.Used for instances ofForLoopTree.Used for instances ofBinaryTreerepresenting greater-than>.Used for instances ofBinaryTreerepresenting greater-than-equal>=.Preview.Used for instances ofGuardedPatternTreePREVIEW.Used for instances ofIdentifierTree.Used for instances ofIfTree.Used for instances ofImportTree.Used for instances ofInstanceOfTree.Used for instances ofLiteralTreerepresenting an integral literal expression of typeint.Used for instances ofClassTreerepresenting interfaces.Used for instances ofIntersectionTypeTree.Used for instances ofLabeledStatementTree.Used for instances ofLambdaExpressionTree.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 ofLiteralTreerepresenting an integral literal expression of typelong.Used for instances ofMemberReferenceTree.Used for instances ofMemberSelectTree.Used for instances ofMethodTree.Used for instances ofMethodInvocationTree.Used for instances ofBinaryTreerepresenting subtraction-.Used for instances ofCompoundAssignmentTreerepresenting subtraction assignment-=.Used for instances ofModifiersTree.Used for instances ofModuleTreerepresenting module declarations.Used for instances ofBinaryTreerepresenting multiplication*.Used for instances ofCompoundAssignmentTreerepresenting multiplication assignment*=.Used for instances ofNewArrayTree.Used for instances ofNewClassTree.Used for instances ofBinaryTreerepresenting not-equal-to!=.Used for instances ofLiteralTreerepresenting the use ofnull.Used for instances ofExportsTreerepresenting opens directives in a module declaration.Used for instances ofBinaryTreerepresenting bitwise and logical "or"|.Used for instances ofCompoundAssignmentTreerepresenting bitwise and logical "or" assignment|=.An implementation-reserved node.Used for instances ofPackageTree.Used for instances ofParameterizedTypeTree.Used for instances ofParenthesizedTree.Preview.Used for instances ofParenthesizedPatternTreePREVIEW.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 ofPrimitiveTypeTree.Used for instances ofProvidesTreerepresenting provides directives in a module declaration.Used for instances ofClassTreerepresenting records.Used for instances ofBinaryTreerepresenting remainder%.Used for instances ofCompoundAssignmentTreerepresenting remainder assignment%=.Used for instances ofRequiresTreerepresenting requires directives in a module declaration.Used for instances ofReturnTree.Used for instances ofBinaryTreerepresenting right shift>>.Used for instances ofCompoundAssignmentTreerepresenting right shift assignment>>=.Used for instances ofLiteralTreerepresenting a string literal expression of typeString.Used for instances ofWildcardTreerepresenting a super bounded wildcard type argument.Used for instances ofSwitchTree.Used for instances ofSwitchExpressionTree.Used for instances ofSynchronizedTree.Used for instances ofThrowTree.Used for instances ofTryTree.Used for instances ofAnnotationTreerepresenting type annotations.Used for instances ofTypeCastTree.Used for instances ofTypeParameterTree.Used for instances ofUnaryTreerepresenting unary minus operator-.Used for instances ofUnaryTreerepresenting unary plus operator+.Used for instances ofWildcardTreerepresenting an unbounded wildcard type argument.Used for instances ofUnionTypeTree.Used for instances ofBinaryTreerepresenting unsigned right shift>>>.Used for instances ofCompoundAssignmentTreerepresenting unsigned right shift assignment>>>=.Used for instances ofUsesTreerepresenting uses directives in a module declaration.Used for instances ofVariableTree.Used for instances ofWhileLoopTree.Used for instances ofBinaryTreerepresenting bitwise and logical "xor"^.Used for instances ofCompoundAssignmentTreerepresenting bitwise and logical "xor" assignment^=.Used for instances ofYieldTree. -
Method Summary
-
Enum Constant Details
-
ANNOTATED_TYPE
Used for instances ofAnnotatedTypeTreerepresenting annotated types. -
ANNOTATION
Used for instances ofAnnotationTreerepresenting declaration annotations. -
TYPE_ANNOTATION
Used for instances ofAnnotationTreerepresenting type annotations. -
ARRAY_ACCESS
Used for instances ofArrayAccessTree. -
ARRAY_TYPE
Used for instances ofArrayTypeTree. -
ASSERT
Used for instances ofAssertTree. -
ASSIGNMENT
Used for instances ofAssignmentTree. -
BLOCK
Used for instances ofBlockTree. -
BREAK
Used for instances ofBreakTree. -
CASE
Used for instances ofCaseTree. -
CATCH
Used for instances ofCatchTree. -
CLASS
Used for instances ofClassTreerepresenting classes. -
COMPILATION_UNIT
Used for instances ofCompilationUnitTree. -
CONDITIONAL_EXPRESSION
Used for instances ofConditionalExpressionTree. -
CONTINUE
Used for instances ofContinueTree. -
DO_WHILE_LOOP
Used for instances ofDoWhileLoopTree. -
ENHANCED_FOR_LOOP
Used for instances ofEnhancedForLoopTree. -
EXPRESSION_STATEMENT
Used for instances ofExpressionStatementTree. -
MEMBER_SELECT
Used for instances ofMemberSelectTree. -
MEMBER_REFERENCE
Used for instances ofMemberReferenceTree. -
FOR_LOOP
Used for instances ofForLoopTree. -
IDENTIFIER
Used for instances ofIdentifierTree. -
IF
Used for instances ofIfTree. -
IMPORT
Used for instances ofImportTree. -
INSTANCE_OF
Used for instances ofInstanceOfTree. -
LABELED_STATEMENT
Used for instances ofLabeledStatementTree. -
METHOD
Used for instances ofMethodTree. -
METHOD_INVOCATION
Used for instances ofMethodInvocationTree. -
MODIFIERS
Used for instances ofModifiersTree. -
NEW_ARRAY
Used for instances ofNewArrayTree. -
NEW_CLASS
Used for instances ofNewClassTree. -
LAMBDA_EXPRESSION
Used for instances ofLambdaExpressionTree. -
PACKAGE
Used for instances ofPackageTree.- Since:
- 9
-
PARENTHESIZED
Used for instances ofParenthesizedTree. -
BINDING_PATTERN
Used for instances ofBindingPatternTree.- Since:
- 16
-
GUARDED_PATTERN
GUARDED_PATTERNis a reflective preview API of the Java platform.Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.Used for instances ofGuardedPatternTreePREVIEW.- Since:
- 17
-
PARENTHESIZED_PATTERN
PARENTHESIZED_PATTERNis a reflective preview API of the Java platform.Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.Used for instances ofParenthesizedPatternTreePREVIEW.- Since:
- 17
-
DEFAULT_CASE_LABEL
DEFAULT_CASE_LABELis a reflective preview API of the Java platform.Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.Used for instances ofDefaultCaseLabelTreePREVIEW.- Since:
- 17
-
PRIMITIVE_TYPE
Used for instances ofPrimitiveTypeTree. -
RETURN
Used for instances ofReturnTree. -
EMPTY_STATEMENT
Used for instances ofEmptyStatementTree. -
SWITCH
Used for instances ofSwitchTree. -
SWITCH_EXPRESSION
Used for instances ofSwitchExpressionTree.- Since:
- 12
-
SYNCHRONIZED
Used for instances ofSynchronizedTree. -
THROW
Used for instances ofThrowTree. -
TRY
Used for instances ofTryTree. -
PARAMETERIZED_TYPE
Used for instances ofParameterizedTypeTree. -
UNION_TYPE
Used for instances ofUnionTypeTree. -
INTERSECTION_TYPE
Used for instances ofIntersectionTypeTree. -
TYPE_CAST
Used for instances ofTypeCastTree. -
TYPE_PARAMETER
Used for instances ofTypeParameterTree. -
VARIABLE
Used for instances ofVariableTree. -
WHILE_LOOP
Used for instances ofWhileLoopTree. -
POSTFIX_INCREMENT
Used for instances ofUnaryTreerepresenting postfix increment operator++. -
POSTFIX_DECREMENT
Used for instances ofUnaryTreerepresenting postfix decrement operator--. -
PREFIX_INCREMENT
Used for instances ofUnaryTreerepresenting prefix increment operator++. -
PREFIX_DECREMENT
Used for instances ofUnaryTreerepresenting prefix decrement operator--. -
UNARY_PLUS
Used for instances ofUnaryTreerepresenting unary plus operator+. -
UNARY_MINUS
Used for instances ofUnaryTreerepresenting unary minus operator-. -
BITWISE_COMPLEMENT
Used for instances ofUnaryTreerepresenting bitwise complement operator~. -
LOGICAL_COMPLEMENT
Used for instances ofUnaryTreerepresenting logical complement operator!. -
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>=. -
EQUAL_TO
Used for instances ofBinaryTreerepresenting equal-to==. -
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|=. -
INT_LITERAL
Used for instances ofLiteralTreerepresenting an integral literal expression of typeint. -
LONG_LITERAL
Used for instances ofLiteralTreerepresenting an integral literal expression of typelong. -
FLOAT_LITERAL
Used for instances ofLiteralTreerepresenting a floating-point literal expression of typefloat. -
DOUBLE_LITERAL
Used for instances ofLiteralTreerepresenting a floating-point literal expression of typedouble. -
BOOLEAN_LITERAL
Used for instances ofLiteralTreerepresenting a boolean literal expression of typeboolean. -
CHAR_LITERAL
Used for instances ofLiteralTreerepresenting a character literal expression of typechar. -
STRING_LITERAL
Used for instances ofLiteralTreerepresenting a string literal expression of typeString. -
NULL_LITERAL
Used for instances ofLiteralTreerepresenting the use ofnull. -
UNBOUNDED_WILDCARD
Used for instances ofWildcardTreerepresenting an unbounded wildcard type argument. -
EXTENDS_WILDCARD
Used for instances ofWildcardTreerepresenting an extends bounded wildcard type argument. -
SUPER_WILDCARD
Used for instances ofWildcardTreerepresenting a super bounded wildcard type argument. -
ERRONEOUS
Used for instances ofErroneousTree. -
INTERFACE
Used for instances ofClassTreerepresenting interfaces. -
ENUM
Used for instances ofClassTreerepresenting enums. -
ANNOTATION_TYPE
Used for instances ofClassTreerepresenting annotation types. -
MODULE
Used for instances ofModuleTreerepresenting module declarations. -
EXPORTS
Used for instances ofExportsTreerepresenting exports directives in a module declaration. -
OPENS
Used for instances ofExportsTreerepresenting opens directives in a module declaration. -
PROVIDES
Used for instances ofProvidesTreerepresenting provides directives in a module declaration. -
RECORD
Used for instances ofClassTreerepresenting records.- Since:
- 16
-
REQUIRES
Used for instances ofRequiresTreerepresenting requires directives in a module declaration. -
USES
Used for instances ofUsesTreerepresenting uses directives in a module declaration. -
OTHER
An implementation-reserved node. This is the not the node you are looking for. -
YIELD
Used for instances ofYieldTree.- Since:
- 13
-
-
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
Returns the associated interface type that uses this kind.- Returns:
- the associated interface
-