@Exported public static enum Tree.Kind extends Enum<Tree.Kind>
| Enum Constant and Description | 
|---|
| ANDUsed for instances of  BinaryTreerepresenting
 bitwise and logical "and"&. | 
| AND_ASSIGNMENTUsed for instances of  CompoundAssignmentTreerepresenting
 bitwise and logical "and" assignment&=. | 
| ANNOTATED_TYPE | 
| ANNOTATIONUsed for instances of  AnnotationTreerepresenting declaration annotations. | 
| ANNOTATION_TYPEUsed for instances of  ClassTreerepresenting annotation types. | 
| ARRAY_ACCESSUsed for instances of  ArrayAccessTree. | 
| ARRAY_TYPEUsed for instances of  ArrayTypeTree. | 
| ASSERTUsed for instances of  AssertTree. | 
| ASSIGNMENTUsed for instances of  AssignmentTree. | 
| BITWISE_COMPLEMENTUsed for instances of  UnaryTreerepresenting bitwise
 complement operator~. | 
| BLOCKUsed for instances of  BlockTree. | 
| BOOLEAN_LITERALUsed for instances of  LiteralTreerepresenting
 a boolean literal expression of typeboolean. | 
| BREAKUsed for instances of  BreakTree. | 
| CASEUsed for instances of  CaseTree. | 
| CATCHUsed for instances of  CatchTree. | 
| CHAR_LITERALUsed for instances of  LiteralTreerepresenting
 a character literal expression of typechar. | 
| CLASSUsed for instances of  ClassTreerepresenting classes. | 
| COMPILATION_UNITUsed for instances of  CompilationUnitTree. | 
| CONDITIONAL_ANDUsed for instances of  BinaryTreerepresenting
 conditional-and&&. | 
| CONDITIONAL_EXPRESSIONUsed for instances of  ConditionalExpressionTree. | 
| CONDITIONAL_ORUsed for instances of  BinaryTreerepresenting
 conditional-or||. | 
| CONTINUEUsed for instances of  ContinueTree. | 
| DIVIDEUsed for instances of  BinaryTreerepresenting
 division/. | 
| DIVIDE_ASSIGNMENTUsed for instances of  CompoundAssignmentTreerepresenting
 division assignment/=. | 
| DO_WHILE_LOOPUsed for instances of  DoWhileLoopTree. | 
| DOUBLE_LITERALUsed for instances of  LiteralTreerepresenting
 a floating-point literal expression of typedouble. | 
| EMPTY_STATEMENTUsed for instances of  EmptyStatementTree. | 
| ENHANCED_FOR_LOOPUsed for instances of  EnhancedForLoopTree. | 
| ENUMUsed for instances of  ClassTreerepresenting enums. | 
| EQUAL_TOUsed for instances of  BinaryTreerepresenting
 equal-to==. | 
| ERRONEOUSUsed for instances of  ErroneousTree. | 
| EXPRESSION_STATEMENTUsed for instances of  ExpressionStatementTree. | 
| EXTENDS_WILDCARDUsed for instances of  WildcardTreerepresenting
 an extends bounded wildcard type argument. | 
| FLOAT_LITERALUsed for instances of  LiteralTreerepresenting
 a floating-point literal expression of typefloat. | 
| FOR_LOOPUsed for instances of  ForLoopTree. | 
| GREATER_THANUsed for instances of  BinaryTreerepresenting
 greater-than>. | 
| GREATER_THAN_EQUALUsed for instances of  BinaryTreerepresenting
 greater-than-equal>=. | 
| IDENTIFIERUsed for instances of  IdentifierTree. | 
| IFUsed for instances of  IfTree. | 
| IMPORTUsed for instances of  ImportTree. | 
| INSTANCE_OFUsed for instances of  InstanceOfTree. | 
| INT_LITERALUsed for instances of  LiteralTreerepresenting
 an integral literal expression of typeint. | 
| INTERFACEUsed for instances of  ClassTreerepresenting interfaces. | 
| INTERSECTION_TYPEUsed for instances of  IntersectionTypeTree. | 
| LABELED_STATEMENTUsed for instances of  LabeledStatementTree. | 
| LAMBDA_EXPRESSIONUsed for instances of  LambdaExpressionTree. | 
| LEFT_SHIFTUsed for instances of  BinaryTreerepresenting
 left shift<<. | 
| LEFT_SHIFT_ASSIGNMENTUsed for instances of  CompoundAssignmentTreerepresenting
 left shift assignment<<=. | 
| LESS_THANUsed for instances of  BinaryTreerepresenting
 less-than<. | 
| LESS_THAN_EQUALUsed for instances of  BinaryTreerepresenting
 less-than-equal<=. | 
| LOGICAL_COMPLEMENTUsed for instances of  UnaryTreerepresenting logical
 complement operator!. | 
| LONG_LITERALUsed for instances of  LiteralTreerepresenting
 an integral literal expression of typelong. | 
| MEMBER_REFERENCEUsed for instances of  MemberReferenceTree. | 
| MEMBER_SELECTUsed for instances of  MemberSelectTree. | 
| METHODUsed for instances of  MethodTree. | 
| METHOD_INVOCATIONUsed for instances of  MethodInvocationTree. | 
| MINUSUsed for instances of  BinaryTreerepresenting
 subtraction-. | 
| MINUS_ASSIGNMENTUsed for instances of  CompoundAssignmentTreerepresenting
 subtraction assignment-=. | 
| MODIFIERSUsed for instances of  ModifiersTree. | 
| MULTIPLYUsed for instances of  BinaryTreerepresenting
 multiplication*. | 
| MULTIPLY_ASSIGNMENTUsed for instances of  CompoundAssignmentTreerepresenting
 multiplication assignment*=. | 
| NEW_ARRAYUsed for instances of  NewArrayTree. | 
| NEW_CLASSUsed for instances of  NewClassTree. | 
| NOT_EQUAL_TOUsed for instances of  BinaryTreerepresenting
 not-equal-to!=. | 
| NULL_LITERALUsed for instances of  LiteralTreerepresenting
 the use ofnull. | 
| ORUsed for instances of  BinaryTreerepresenting
 bitwise and logical "or"|. | 
| OR_ASSIGNMENTUsed for instances of  CompoundAssignmentTreerepresenting
 bitwise and logical "or" assignment|=. | 
| OTHERAn implementation-reserved node. | 
| PARAMETERIZED_TYPEUsed for instances of  ParameterizedTypeTree. | 
| PARENTHESIZEDUsed for instances of  ParenthesizedTree. | 
| PLUSUsed for instances of  BinaryTreerepresenting
 addition or string concatenation+. | 
| PLUS_ASSIGNMENTUsed for instances of  CompoundAssignmentTreerepresenting
 addition or string concatenation assignment+=. | 
| POSTFIX_DECREMENTUsed for instances of  UnaryTreerepresenting postfix
 decrement operator--. | 
| POSTFIX_INCREMENTUsed for instances of  UnaryTreerepresenting postfix
 increment operator++. | 
| PREFIX_DECREMENTUsed for instances of  UnaryTreerepresenting prefix
 decrement operator--. | 
| PREFIX_INCREMENTUsed for instances of  UnaryTreerepresenting prefix
 increment operator++. | 
| PRIMITIVE_TYPEUsed for instances of  PrimitiveTypeTree. | 
| REMAINDERUsed for instances of  BinaryTreerepresenting
 remainder%. | 
| REMAINDER_ASSIGNMENTUsed for instances of  CompoundAssignmentTreerepresenting
 remainder assignment%=. | 
| RETURNUsed for instances of  ReturnTree. | 
| RIGHT_SHIFTUsed for instances of  BinaryTreerepresenting
 right shift>>. | 
| RIGHT_SHIFT_ASSIGNMENTUsed for instances of  CompoundAssignmentTreerepresenting
 right shift assignment>>=. | 
| STRING_LITERALUsed for instances of  LiteralTreerepresenting
 a string literal expression of typeString. | 
| SUPER_WILDCARDUsed for instances of  WildcardTreerepresenting
 a super bounded wildcard type argument. | 
| SWITCHUsed for instances of  SwitchTree. | 
| SYNCHRONIZEDUsed for instances of  SynchronizedTree. | 
| THROWUsed for instances of  ThrowTree. | 
| TRYUsed for instances of  TryTree. | 
| TYPE_ANNOTATIONUsed for instances of  AnnotationTreerepresenting type annotations. | 
| TYPE_CASTUsed for instances of  TypeCastTree. | 
| TYPE_PARAMETERUsed for instances of  TypeParameterTree. | 
| UNARY_MINUSUsed for instances of  UnaryTreerepresenting unary minus
 operator-. | 
| UNARY_PLUSUsed for instances of  UnaryTreerepresenting unary plus
 operator+. | 
| UNBOUNDED_WILDCARDUsed for instances of  WildcardTreerepresenting
 an unbounded wildcard type argument. | 
| UNION_TYPEUsed for instances of  UnionTypeTree. | 
| UNSIGNED_RIGHT_SHIFTUsed for instances of  BinaryTreerepresenting
 unsigned right shift>>>. | 
| UNSIGNED_RIGHT_SHIFT_ASSIGNMENTUsed for instances of  CompoundAssignmentTreerepresenting
 unsigned right shift assignment>>>=. | 
| VARIABLEUsed for instances of  VariableTree. | 
| WHILE_LOOPUsed for instances of  WhileLoopTree. | 
| XORUsed for instances of  BinaryTreerepresenting
 bitwise and logical "xor"^. | 
| XOR_ASSIGNMENTUsed for instances of  CompoundAssignmentTreerepresenting
 bitwise and logical "xor" assignment^=. | 
| Modifier and Type | Method and Description | 
|---|---|
| Class<? extends Tree> | asInterface() | 
| 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 ANNOTATED_TYPE
public static final Tree.Kind ANNOTATION
AnnotationTree
 representing declaration annotations.public static final Tree.Kind TYPE_ANNOTATION
AnnotationTree
 representing type annotations.public static final Tree.Kind ARRAY_ACCESS
ArrayAccessTree.public static final Tree.Kind ARRAY_TYPE
ArrayTypeTree.public static final Tree.Kind ASSERT
AssertTree.public static final Tree.Kind ASSIGNMENT
AssignmentTree.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 ENHANCED_FOR_LOOP
EnhancedForLoopTree.public static final Tree.Kind EXPRESSION_STATEMENT
ExpressionStatementTree.public static final Tree.Kind MEMBER_SELECT
MemberSelectTree.public static final Tree.Kind MEMBER_REFERENCE
MemberReferenceTree.public static final Tree.Kind FOR_LOOP
ForLoopTree.public static final Tree.Kind IDENTIFIER
IdentifierTree.public static final Tree.Kind IMPORT
ImportTree.public static final Tree.Kind INSTANCE_OF
InstanceOfTree.public static final Tree.Kind LABELED_STATEMENT
LabeledStatementTree.public static final Tree.Kind METHOD
MethodTree.public static final Tree.Kind METHOD_INVOCATION
MethodInvocationTree.public static final Tree.Kind MODIFIERS
ModifiersTree.public static final Tree.Kind NEW_ARRAY
NewArrayTree.public static final Tree.Kind NEW_CLASS
NewClassTree.public static final Tree.Kind LAMBDA_EXPRESSION
LambdaExpressionTree.public static final Tree.Kind PARENTHESIZED
ParenthesizedTree.public static final Tree.Kind PRIMITIVE_TYPE
PrimitiveTypeTree.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 SYNCHRONIZED
SynchronizedTree.public static final Tree.Kind PARAMETERIZED_TYPE
ParameterizedTypeTree.public static final Tree.Kind UNION_TYPE
UnionTypeTree.public static final Tree.Kind INTERSECTION_TYPE
IntersectionTypeTree.public static final Tree.Kind TYPE_CAST
TypeCastTree.public static final Tree.Kind TYPE_PARAMETER
TypeParameterTree.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 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 EQUAL_TO
BinaryTree representing
 equal-to ==.public static final Tree.Kind 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 INT_LITERAL
LiteralTree representing
 an integral literal expression of type int.public static final Tree.Kind LONG_LITERAL
LiteralTree representing
 an integral literal expression of type long.public static final Tree.Kind FLOAT_LITERAL
LiteralTree representing
 a floating-point literal expression of type float.public static final Tree.Kind DOUBLE_LITERAL
LiteralTree representing
 a floating-point 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 CHAR_LITERAL
LiteralTree representing
 a character literal expression of type char.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 UNBOUNDED_WILDCARD
WildcardTree representing
 an unbounded wildcard type argument.public static final Tree.Kind EXTENDS_WILDCARD
WildcardTree representing
 an extends bounded wildcard type argument.public static final Tree.Kind SUPER_WILDCARD
WildcardTree representing
 a super bounded wildcard type argument.public static final Tree.Kind ERRONEOUS
ErroneousTree.public static final Tree.Kind INTERFACE
ClassTree representing interfaces.public static final Tree.Kind ANNOTATION_TYPE
ClassTree representing annotation types.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 null
 Copyright © 2005, 2025, Oracle and/or its affiliates.  All rights reserved.