- 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 ConstantDescriptionUsed for instances ofBinaryTree
representing bitwise and logical "and"&
.Used for instances ofCompoundAssignmentTree
representing bitwise and logical "and" assignment&=
.Used for instances ofAnnotatedTypeTree
representing annotated types.Used for instances ofAnnotationTree
representing declaration annotations.Used for instances ofClassTree
representing annotation types.Used for instances ofBindingPatternTree
.Used for instances ofArrayAccessTree
.Used for instances ofArrayTypeTree
.Used for instances ofAssertTree
.Used for instances ofAssignmentTree
.Used for instances ofBindingPatternTree
.Used for instances ofUnaryTree
representing bitwise complement operator~
.Used for instances ofBlockTree
.Used for instances ofLiteralTree
representing a boolean literal expression of typeboolean
.Used for instances ofBreakTree
.Used for instances ofCaseTree
.Used for instances ofCatchTree
.Used for instances ofLiteralTree
representing a character literal expression of typechar
.Used for instances ofClassTree
representing classes.Used for instances ofCompilationUnitTree
.Used for instances ofBinaryTree
representing conditional-and&&
.Used for instances ofConditionalExpressionTree
.Used for instances ofBinaryTree
representing conditional-or||
.Used for instances ofConstantCaseLabelTree
.Used for instances ofContinueTree
.Used for instances ofDeconstructionPatternTree
.Used for instances ofDefaultCaseLabelTree
.Used for instances ofBinaryTree
representing division/
.Used for instances ofCompoundAssignmentTree
representing division assignment/=
.Used for instances ofDoWhileLoopTree
.Used for instances ofLiteralTree
representing a floating-point literal expression of typedouble
.Used for instances ofEmptyStatementTree
.Used for instances ofEnhancedForLoopTree
.Used for instances ofClassTree
representing enums.Used for instances ofBinaryTree
representing equal-to==
.Used for instances ofErroneousTree
.Used for instances ofExportsTree
representing exports directives in a module declaration.Used for instances ofExpressionStatementTree
.Used for instances ofWildcardTree
representing an upper-bounded wildcard type argument.Used for instances ofLiteralTree
representing a floating-point literal expression of typefloat
.Used for instances ofForLoopTree
.Used for instances ofBinaryTree
representing greater-than>
.Used for instances ofBinaryTree
representing greater-than-equal>=
.Used for instances ofIdentifierTree
.Used for instances ofIfTree
.Used for instances ofImportTree
.Used for instances ofInstanceOfTree
.Used for instances ofLiteralTree
representing an integral literal expression of typeint
.Used for instances ofClassTree
representing interfaces.Used for instances ofIntersectionTypeTree
.Used for instances ofLabeledStatementTree
.Used for instances ofLambdaExpressionTree
.Used for instances ofBinaryTree
representing left shift<<
.Used for instances ofCompoundAssignmentTree
representing left shift assignment<<=
.Used for instances ofBinaryTree
representing less-than<
.Used for instances ofBinaryTree
representing less-than-equal<=
.Used for instances ofUnaryTree
representing logical complement operator!
.Used for instances ofLiteralTree
representing 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 ofBinaryTree
representing subtraction-
.Used for instances ofCompoundAssignmentTree
representing subtraction assignment-=
.Used for instances ofModifiersTree
.Used for instances ofModuleTree
representing module declarations.Used for instances ofBinaryTree
representing multiplication*
.Used for instances ofCompoundAssignmentTree
representing multiplication assignment*=
.Used for instances ofNewArrayTree
.Used for instances ofNewClassTree
.Used for instances ofBinaryTree
representing not-equal-to!=
.Used for instances ofLiteralTree
representing the use ofnull
.Used for instances ofExportsTree
representing opens directives in a module declaration.Used for instances ofBinaryTree
representing bitwise and logical "or"|
.Used for instances ofCompoundAssignmentTree
representing bitwise and logical "or" assignment|=
.An implementation-reserved node.Used for instances ofPackageTree
.Used for instances ofParameterizedTypeTree
.Used for instances ofParenthesizedTree
.Used for instances ofPatternCaseLabelTree
.Used for instances ofBinaryTree
representing addition or string concatenation+
.Used for instances ofCompoundAssignmentTree
representing addition or string concatenation assignment+=
.Used for instances ofUnaryTree
representing postfix decrement operator--
.Used for instances ofUnaryTree
representing postfix increment operator++
.Used for instances ofUnaryTree
representing prefix decrement operator--
.Used for instances ofUnaryTree
representing prefix increment operator++
.Used for instances ofPrimitiveTypeTree
.Used for instances ofProvidesTree
representing provides directives in a module declaration.Used for instances ofClassTree
representing records.Used for instances ofBinaryTree
representing remainder%
.Used for instances ofCompoundAssignmentTree
representing remainder assignment%=
.Used for instances ofRequiresTree
representing requires directives in a module declaration.Used for instances ofReturnTree
.Used for instances ofBinaryTree
representing right shift>>
.Used for instances ofCompoundAssignmentTree
representing right shift assignment>>=
.Used for instances ofLiteralTree
representing a string literal expression of typeString
.Used for instances ofWildcardTree
representing a lower-bounded wildcard type argument.Used for instances ofSwitchTree
.Used for instances ofSwitchExpressionTree
.Used for instances ofSynchronizedTree
.Preview.Used for instances ofStringTemplateTree
PREVIEW.Used for instances ofThrowTree
.Used for instances ofTryTree
.Used for instances ofAnnotationTree
representing type annotations.Used for instances ofTypeCastTree
.Used for instances ofTypeParameterTree
.Used for instances ofUnaryTree
representing unary minus operator-
.Used for instances ofUnaryTree
representing unary plus operator+
.Used for instances ofWildcardTree
representing an unbounded wildcard type argument.Used for instances ofUnionTypeTree
.Used for instances ofBinaryTree
representing unsigned right shift>>>
.Used for instances ofCompoundAssignmentTree
representing unsigned right shift assignment>>>=
.Used for instances ofUsesTree
representing uses directives in a module declaration.Used for instances ofVariableTree
.Used for instances ofWhileLoopTree
.Used for instances ofBinaryTree
representing bitwise and logical "xor"^
.Used for instances ofCompoundAssignmentTree
representing bitwise and logical "xor" assignment^=
.Used for instances ofYieldTree
. -
Method Summary
-
Enum Constant Details
-
ANNOTATED_TYPE
Used for instances ofAnnotatedTypeTree
representing annotated types. -
ANNOTATION
Used for instances ofAnnotationTree
representing declaration annotations. -
TYPE_ANNOTATION
Used for instances ofAnnotationTree
representing 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
-
BREAK
-
CASE
-
CATCH
-
CLASS
-
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
-
IMPORT
Used for instances ofImportTree
. -
INSTANCE_OF
Used for instances ofInstanceOfTree
. -
TEMPLATE
TEMPLATE
is 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 ofStringTemplateTree
PREVIEW.- Since:
- 21
-
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
-
PARENTHESIZED
Used for instances ofParenthesizedTree
. -
ANY_PATTERN
-
BINDING_PATTERN
-
DEFAULT_CASE_LABEL
Used for instances ofDefaultCaseLabelTree
.- Since:
- 21
-
CONSTANT_CASE_LABEL
Used for instances ofConstantCaseLabelTree
.- Since:
- 21
-
PATTERN_CASE_LABEL
Used for instances ofPatternCaseLabelTree
.- Since:
- 21
-
DECONSTRUCTION_PATTERN
Used for instances ofDeconstructionPatternTree
.- Since:
- 21
-
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
-
TRY
-
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
-
POSTFIX_DECREMENT
-
PREFIX_INCREMENT
-
PREFIX_DECREMENT
-
UNARY_PLUS
-
UNARY_MINUS
-
BITWISE_COMPLEMENT
-
LOGICAL_COMPLEMENT
-
MULTIPLY
Used for instances ofBinaryTree
representing multiplication*
. -
DIVIDE
Used for instances ofBinaryTree
representing division/
. -
REMAINDER
Used for instances ofBinaryTree
representing remainder%
. -
PLUS
Used for instances ofBinaryTree
representing addition or string concatenation+
. -
MINUS
Used for instances ofBinaryTree
representing subtraction-
. -
LEFT_SHIFT
Used for instances ofBinaryTree
representing left shift<<
. -
RIGHT_SHIFT
Used for instances ofBinaryTree
representing right shift>>
. -
UNSIGNED_RIGHT_SHIFT
Used for instances ofBinaryTree
representing unsigned right shift>>>
. -
LESS_THAN
Used for instances ofBinaryTree
representing less-than<
. -
GREATER_THAN
Used for instances ofBinaryTree
representing greater-than>
. -
LESS_THAN_EQUAL
Used for instances ofBinaryTree
representing less-than-equal<=
. -
GREATER_THAN_EQUAL
Used for instances ofBinaryTree
representing greater-than-equal>=
. -
EQUAL_TO
Used for instances ofBinaryTree
representing equal-to==
. -
NOT_EQUAL_TO
Used for instances ofBinaryTree
representing not-equal-to!=
. -
AND
Used for instances ofBinaryTree
representing bitwise and logical "and"&
. -
XOR
Used for instances ofBinaryTree
representing bitwise and logical "xor"^
. -
OR
Used for instances ofBinaryTree
representing bitwise and logical "or"|
. -
CONDITIONAL_AND
Used for instances ofBinaryTree
representing conditional-and&&
. -
CONDITIONAL_OR
Used for instances ofBinaryTree
representing conditional-or||
. -
MULTIPLY_ASSIGNMENT
Used for instances ofCompoundAssignmentTree
representing multiplication assignment*=
. -
DIVIDE_ASSIGNMENT
Used for instances ofCompoundAssignmentTree
representing division assignment/=
. -
REMAINDER_ASSIGNMENT
Used for instances ofCompoundAssignmentTree
representing remainder assignment%=
. -
PLUS_ASSIGNMENT
Used for instances ofCompoundAssignmentTree
representing addition or string concatenation assignment+=
. -
MINUS_ASSIGNMENT
Used for instances ofCompoundAssignmentTree
representing subtraction assignment-=
. -
LEFT_SHIFT_ASSIGNMENT
Used for instances ofCompoundAssignmentTree
representing left shift assignment<<=
. -
RIGHT_SHIFT_ASSIGNMENT
Used for instances ofCompoundAssignmentTree
representing right shift assignment>>=
. -
UNSIGNED_RIGHT_SHIFT_ASSIGNMENT
Used for instances ofCompoundAssignmentTree
representing unsigned right shift assignment>>>=
. -
AND_ASSIGNMENT
Used for instances ofCompoundAssignmentTree
representing bitwise and logical "and" assignment&=
. -
XOR_ASSIGNMENT
Used for instances ofCompoundAssignmentTree
representing bitwise and logical "xor" assignment^=
. -
OR_ASSIGNMENT
Used for instances ofCompoundAssignmentTree
representing bitwise and logical "or" assignment|=
. -
INT_LITERAL
Used for instances ofLiteralTree
representing an integral literal expression of typeint
. -
LONG_LITERAL
Used for instances ofLiteralTree
representing an integral literal expression of typelong
. -
FLOAT_LITERAL
Used for instances ofLiteralTree
representing a floating-point literal expression of typefloat
. -
DOUBLE_LITERAL
Used for instances ofLiteralTree
representing a floating-point literal expression of typedouble
. -
BOOLEAN_LITERAL
Used for instances ofLiteralTree
representing a boolean literal expression of typeboolean
. -
CHAR_LITERAL
Used for instances ofLiteralTree
representing a character literal expression of typechar
. -
STRING_LITERAL
Used for instances ofLiteralTree
representing a string literal expression of typeString
. -
NULL_LITERAL
Used for instances ofLiteralTree
representing the use ofnull
. -
UNBOUNDED_WILDCARD
Used for instances ofWildcardTree
representing an unbounded wildcard type argument. -
EXTENDS_WILDCARD
Used for instances ofWildcardTree
representing an upper-bounded wildcard type argument. -
SUPER_WILDCARD
Used for instances ofWildcardTree
representing a lower-bounded wildcard type argument. -
ERRONEOUS
Used for instances ofErroneousTree
. -
INTERFACE
-
ENUM
-
ANNOTATION_TYPE
-
MODULE
Used for instances ofModuleTree
representing module declarations. -
EXPORTS
Used for instances ofExportsTree
representing exports directives in a module declaration. -
OPENS
Used for instances ofExportsTree
representing opens directives in a module declaration. -
PROVIDES
Used for instances ofProvidesTree
representing provides directives in a module declaration. -
RECORD
-
REQUIRES
Used for instances ofRequiresTree
representing requires directives in a module declaration. -
USES
-
OTHER
An implementation-reserved node. This is not the node you are looking for. -
YIELD
-
-
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
-