- java.lang.Object
-
- java.lang.Enum<Tree.Kind>
-
- com.sun.source.tree.Tree.Kind
-
- All Implemented Interfaces:
Serializable,Comparable<Tree.Kind>
- Enclosing interface:
- Tree
public static enum Tree.Kind extends Enum<Tree.Kind>
Enumerates all kinds of trees.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANDUsed for instances ofBinaryTreerepresenting bitwise and logical "and"&.AND_ASSIGNMENTUsed for instances ofCompoundAssignmentTreerepresenting bitwise and logical "and" assignment&=.ANNOTATED_TYPEUsed for instances ofAnnotatedTypeTreerepresenting annotated types.ANNOTATIONUsed for instances ofAnnotationTreerepresenting declaration annotations.ANNOTATION_TYPEUsed for instances ofClassTreerepresenting annotation types.ARRAY_ACCESSUsed for instances ofArrayAccessTree.ARRAY_TYPEUsed for instances ofArrayTypeTree.ASSERTUsed for instances ofAssertTree.ASSIGNMENTUsed for instances ofAssignmentTree.BITWISE_COMPLEMENTUsed for instances ofUnaryTreerepresenting bitwise complement operator~.BLOCKUsed for instances ofBlockTree.BOOLEAN_LITERALUsed for instances ofLiteralTreerepresenting a boolean literal expression of typeboolean.BREAKUsed for instances ofBreakTree.CASEUsed for instances ofCaseTree.CATCHUsed for instances ofCatchTree.CHAR_LITERALUsed for instances ofLiteralTreerepresenting a character literal expression of typechar.CLASSUsed for instances ofClassTreerepresenting classes.COMPILATION_UNITUsed for instances ofCompilationUnitTree.CONDITIONAL_ANDUsed for instances ofBinaryTreerepresenting conditional-and&&.CONDITIONAL_EXPRESSIONUsed for instances ofConditionalExpressionTree.CONDITIONAL_ORUsed for instances ofBinaryTreerepresenting conditional-or||.CONTINUEUsed for instances ofContinueTree.DIVIDEUsed for instances ofBinaryTreerepresenting division/.DIVIDE_ASSIGNMENTUsed for instances ofCompoundAssignmentTreerepresenting division assignment/=.DO_WHILE_LOOPUsed for instances ofDoWhileLoopTree.DOUBLE_LITERALUsed for instances ofLiteralTreerepresenting a floating-point literal expression of typedouble.EMPTY_STATEMENTUsed for instances ofEmptyStatementTree.ENHANCED_FOR_LOOPUsed for instances ofEnhancedForLoopTree.ENUMUsed for instances ofClassTreerepresenting enums.EQUAL_TOUsed for instances ofBinaryTreerepresenting equal-to==.ERRONEOUSUsed for instances ofErroneousTree.EXPORTSUsed for instances ofExportsTreerepresenting exports directives in a module declaration.EXPRESSION_STATEMENTUsed for instances ofExpressionStatementTree.EXTENDS_WILDCARDUsed for instances ofWildcardTreerepresenting an extends bounded wildcard type argument.FLOAT_LITERALUsed for instances ofLiteralTreerepresenting a floating-point literal expression of typefloat.FOR_LOOPUsed for instances ofForLoopTree.GREATER_THANUsed for instances ofBinaryTreerepresenting greater-than>.GREATER_THAN_EQUALUsed for instances ofBinaryTreerepresenting greater-than-equal>=.IDENTIFIERUsed for instances ofIdentifierTree.IFUsed for instances ofIfTree.IMPORTUsed for instances ofImportTree.INSTANCE_OFUsed for instances ofInstanceOfTree.INT_LITERALUsed for instances ofLiteralTreerepresenting an integral literal expression of typeint.INTERFACEUsed for instances ofClassTreerepresenting interfaces.INTERSECTION_TYPEUsed for instances ofIntersectionTypeTree.LABELED_STATEMENTUsed for instances ofLabeledStatementTree.LAMBDA_EXPRESSIONUsed for instances ofLambdaExpressionTree.LEFT_SHIFTUsed for instances ofBinaryTreerepresenting left shift<<.LEFT_SHIFT_ASSIGNMENTUsed for instances ofCompoundAssignmentTreerepresenting left shift assignment<<=.LESS_THANUsed for instances ofBinaryTreerepresenting less-than<.LESS_THAN_EQUALUsed for instances ofBinaryTreerepresenting less-than-equal<=.LOGICAL_COMPLEMENTUsed for instances ofUnaryTreerepresenting logical complement operator!.LONG_LITERALUsed for instances ofLiteralTreerepresenting an integral literal expression of typelong.MEMBER_REFERENCEUsed for instances ofMemberReferenceTree.MEMBER_SELECTUsed for instances ofMemberSelectTree.METHODUsed for instances ofMethodTree.METHOD_INVOCATIONUsed for instances ofMethodInvocationTree.MINUSUsed for instances ofBinaryTreerepresenting subtraction-.MINUS_ASSIGNMENTUsed for instances ofCompoundAssignmentTreerepresenting subtraction assignment-=.MODIFIERSUsed for instances ofModifiersTree.MODULEUsed for instances ofModuleTreerepresenting module declarations.MULTIPLYUsed for instances ofBinaryTreerepresenting multiplication*.MULTIPLY_ASSIGNMENTUsed for instances ofCompoundAssignmentTreerepresenting multiplication assignment*=.NEW_ARRAYUsed for instances ofNewArrayTree.NEW_CLASSUsed for instances ofNewClassTree.NOT_EQUAL_TOUsed for instances ofBinaryTreerepresenting not-equal-to!=.NULL_LITERALUsed for instances ofLiteralTreerepresenting the use ofnull.OPENSUsed for instances ofExportsTreerepresenting opens directives in a module declaration.ORUsed for instances ofBinaryTreerepresenting bitwise and logical "or"|.OR_ASSIGNMENTUsed for instances ofCompoundAssignmentTreerepresenting bitwise and logical "or" assignment|=.OTHERAn implementation-reserved node.PACKAGEUsed for instances ofPackageTree.PARAMETERIZED_TYPEUsed for instances ofParameterizedTypeTree.PARENTHESIZEDUsed for instances ofParenthesizedTree.PLUSUsed for instances ofBinaryTreerepresenting addition or string concatenation+.PLUS_ASSIGNMENTUsed for instances ofCompoundAssignmentTreerepresenting addition or string concatenation assignment+=.POSTFIX_DECREMENTUsed for instances ofUnaryTreerepresenting postfix decrement operator--.POSTFIX_INCREMENTUsed for instances ofUnaryTreerepresenting postfix increment operator++.PREFIX_DECREMENTUsed for instances ofUnaryTreerepresenting prefix decrement operator--.PREFIX_INCREMENTUsed for instances ofUnaryTreerepresenting prefix increment operator++.PRIMITIVE_TYPEUsed for instances ofPrimitiveTypeTree.PROVIDESUsed for instances ofProvidesTreerepresenting provides directives in a module declaration.REMAINDERUsed for instances ofBinaryTreerepresenting remainder%.REMAINDER_ASSIGNMENTUsed for instances ofCompoundAssignmentTreerepresenting remainder assignment%=.REQUIRESUsed for instances ofRequiresTreerepresenting requires directives in a module declaration.RETURNUsed for instances ofReturnTree.RIGHT_SHIFTUsed for instances ofBinaryTreerepresenting right shift>>.RIGHT_SHIFT_ASSIGNMENTUsed for instances ofCompoundAssignmentTreerepresenting right shift assignment>>=.STRING_LITERALUsed for instances ofLiteralTreerepresenting a string literal expression of typeString.SUPER_WILDCARDUsed for instances ofWildcardTreerepresenting a super bounded wildcard type argument.SWITCHUsed for instances ofSwitchTree.SYNCHRONIZEDUsed for instances ofSynchronizedTree.THROWUsed for instances ofThrowTree.TRYUsed for instances ofTryTree.TYPE_ANNOTATIONUsed for instances ofAnnotationTreerepresenting type annotations.TYPE_CASTUsed for instances ofTypeCastTree.TYPE_PARAMETERUsed for instances ofTypeParameterTree.UNARY_MINUSUsed for instances ofUnaryTreerepresenting unary minus operator-.UNARY_PLUSUsed for instances ofUnaryTreerepresenting unary plus operator+.UNBOUNDED_WILDCARDUsed for instances ofWildcardTreerepresenting an unbounded wildcard type argument.UNION_TYPEUsed for instances ofUnionTypeTree.UNSIGNED_RIGHT_SHIFTUsed for instances ofBinaryTreerepresenting unsigned right shift>>>.UNSIGNED_RIGHT_SHIFT_ASSIGNMENTUsed for instances ofCompoundAssignmentTreerepresenting unsigned right shift assignment>>>=.USESUsed for instances ofUsesTreerepresenting uses directives in a module declaration.VARIABLEUsed for instances ofVariableTree.WHILE_LOOPUsed for instances ofWhileLoopTree.XORUsed for instances ofBinaryTreerepresenting bitwise and logical "xor"^.XOR_ASSIGNMENTUsed for instances ofCompoundAssignmentTreerepresenting bitwise and logical "xor" assignment^=.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends Tree>asInterface()Returns the associated interface type that uses this kind.static Tree.KindvalueOf(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.
-
-
-
Enum Constant Detail
-
ANNOTATED_TYPE
public static final Tree.Kind ANNOTATED_TYPE
Used for instances ofAnnotatedTypeTreerepresenting annotated types.
-
ANNOTATION
public static final Tree.Kind ANNOTATION
Used for instances ofAnnotationTreerepresenting declaration annotations.
-
TYPE_ANNOTATION
public static final Tree.Kind TYPE_ANNOTATION
Used for instances ofAnnotationTreerepresenting type annotations.
-
ARRAY_ACCESS
public static final Tree.Kind ARRAY_ACCESS
Used for instances ofArrayAccessTree.
-
ARRAY_TYPE
public static final Tree.Kind ARRAY_TYPE
Used for instances ofArrayTypeTree.
-
ASSERT
public static final Tree.Kind ASSERT
Used for instances ofAssertTree.
-
ASSIGNMENT
public static final Tree.Kind ASSIGNMENT
Used for instances ofAssignmentTree.
-
COMPILATION_UNIT
public static final Tree.Kind COMPILATION_UNIT
Used for instances ofCompilationUnitTree.
-
CONDITIONAL_EXPRESSION
public static final Tree.Kind CONDITIONAL_EXPRESSION
Used for instances ofConditionalExpressionTree.
-
CONTINUE
public static final Tree.Kind CONTINUE
Used for instances ofContinueTree.
-
DO_WHILE_LOOP
public static final Tree.Kind DO_WHILE_LOOP
Used for instances ofDoWhileLoopTree.
-
ENHANCED_FOR_LOOP
public static final Tree.Kind ENHANCED_FOR_LOOP
Used for instances ofEnhancedForLoopTree.
-
EXPRESSION_STATEMENT
public static final Tree.Kind EXPRESSION_STATEMENT
Used for instances ofExpressionStatementTree.
-
MEMBER_SELECT
public static final Tree.Kind MEMBER_SELECT
Used for instances ofMemberSelectTree.
-
MEMBER_REFERENCE
public static final Tree.Kind MEMBER_REFERENCE
Used for instances ofMemberReferenceTree.
-
FOR_LOOP
public static final Tree.Kind FOR_LOOP
Used for instances ofForLoopTree.
-
IDENTIFIER
public static final Tree.Kind IDENTIFIER
Used for instances ofIdentifierTree.
-
IMPORT
public static final Tree.Kind IMPORT
Used for instances ofImportTree.
-
INSTANCE_OF
public static final Tree.Kind INSTANCE_OF
Used for instances ofInstanceOfTree.
-
LABELED_STATEMENT
public static final Tree.Kind LABELED_STATEMENT
Used for instances ofLabeledStatementTree.
-
METHOD
public static final Tree.Kind METHOD
Used for instances ofMethodTree.
-
METHOD_INVOCATION
public static final Tree.Kind METHOD_INVOCATION
Used for instances ofMethodInvocationTree.
-
MODIFIERS
public static final Tree.Kind MODIFIERS
Used for instances ofModifiersTree.
-
NEW_ARRAY
public static final Tree.Kind NEW_ARRAY
Used for instances ofNewArrayTree.
-
NEW_CLASS
public static final Tree.Kind NEW_CLASS
Used for instances ofNewClassTree.
-
LAMBDA_EXPRESSION
public static final Tree.Kind LAMBDA_EXPRESSION
Used for instances ofLambdaExpressionTree.
-
PACKAGE
public static final Tree.Kind PACKAGE
Used for instances ofPackageTree.- Since:
- 9
-
PARENTHESIZED
public static final Tree.Kind PARENTHESIZED
Used for instances ofParenthesizedTree.
-
PRIMITIVE_TYPE
public static final Tree.Kind PRIMITIVE_TYPE
Used for instances ofPrimitiveTypeTree.
-
RETURN
public static final Tree.Kind RETURN
Used for instances ofReturnTree.
-
EMPTY_STATEMENT
public static final Tree.Kind EMPTY_STATEMENT
Used for instances ofEmptyStatementTree.
-
SWITCH
public static final Tree.Kind SWITCH
Used for instances ofSwitchTree.
-
SYNCHRONIZED
public static final Tree.Kind SYNCHRONIZED
Used for instances ofSynchronizedTree.
-
PARAMETERIZED_TYPE
public static final Tree.Kind PARAMETERIZED_TYPE
Used for instances ofParameterizedTypeTree.
-
UNION_TYPE
public static final Tree.Kind UNION_TYPE
Used for instances ofUnionTypeTree.
-
INTERSECTION_TYPE
public static final Tree.Kind INTERSECTION_TYPE
Used for instances ofIntersectionTypeTree.
-
TYPE_CAST
public static final Tree.Kind TYPE_CAST
Used for instances ofTypeCastTree.
-
TYPE_PARAMETER
public static final Tree.Kind TYPE_PARAMETER
Used for instances ofTypeParameterTree.
-
VARIABLE
public static final Tree.Kind VARIABLE
Used for instances ofVariableTree.
-
WHILE_LOOP
public static final Tree.Kind WHILE_LOOP
Used for instances ofWhileLoopTree.
-
POSTFIX_INCREMENT
public static final Tree.Kind POSTFIX_INCREMENT
Used for instances ofUnaryTreerepresenting postfix increment operator++.
-
POSTFIX_DECREMENT
public static final Tree.Kind POSTFIX_DECREMENT
Used for instances ofUnaryTreerepresenting postfix decrement operator--.
-
PREFIX_INCREMENT
public static final Tree.Kind PREFIX_INCREMENT
Used for instances ofUnaryTreerepresenting prefix increment operator++.
-
PREFIX_DECREMENT
public static final Tree.Kind PREFIX_DECREMENT
Used for instances ofUnaryTreerepresenting prefix decrement operator--.
-
UNARY_PLUS
public static final Tree.Kind UNARY_PLUS
Used for instances ofUnaryTreerepresenting unary plus operator+.
-
UNARY_MINUS
public static final Tree.Kind UNARY_MINUS
Used for instances ofUnaryTreerepresenting unary minus operator-.
-
BITWISE_COMPLEMENT
public static final Tree.Kind BITWISE_COMPLEMENT
Used for instances ofUnaryTreerepresenting bitwise complement operator~.
-
LOGICAL_COMPLEMENT
public static final Tree.Kind LOGICAL_COMPLEMENT
Used for instances ofUnaryTreerepresenting logical complement operator!.
-
MULTIPLY
public static final Tree.Kind MULTIPLY
Used for instances ofBinaryTreerepresenting multiplication*.
-
DIVIDE
public static final Tree.Kind DIVIDE
Used for instances ofBinaryTreerepresenting division/.
-
REMAINDER
public static final Tree.Kind REMAINDER
Used for instances ofBinaryTreerepresenting remainder%.
-
PLUS
public static final Tree.Kind PLUS
Used for instances ofBinaryTreerepresenting addition or string concatenation+.
-
MINUS
public static final Tree.Kind MINUS
Used for instances ofBinaryTreerepresenting subtraction-.
-
LEFT_SHIFT
public static final Tree.Kind LEFT_SHIFT
Used for instances ofBinaryTreerepresenting left shift<<.
-
RIGHT_SHIFT
public static final Tree.Kind RIGHT_SHIFT
Used for instances ofBinaryTreerepresenting right shift>>.
-
UNSIGNED_RIGHT_SHIFT
public static final Tree.Kind UNSIGNED_RIGHT_SHIFT
Used for instances ofBinaryTreerepresenting unsigned right shift>>>.
-
LESS_THAN
public static final Tree.Kind LESS_THAN
Used for instances ofBinaryTreerepresenting less-than<.
-
GREATER_THAN
public static final Tree.Kind GREATER_THAN
Used for instances ofBinaryTreerepresenting greater-than>.
-
LESS_THAN_EQUAL
public static final Tree.Kind LESS_THAN_EQUAL
Used for instances ofBinaryTreerepresenting less-than-equal<=.
-
GREATER_THAN_EQUAL
public static final Tree.Kind GREATER_THAN_EQUAL
Used for instances ofBinaryTreerepresenting greater-than-equal>=.
-
EQUAL_TO
public static final Tree.Kind EQUAL_TO
Used for instances ofBinaryTreerepresenting equal-to==.
-
NOT_EQUAL_TO
public static final Tree.Kind NOT_EQUAL_TO
Used for instances ofBinaryTreerepresenting not-equal-to!=.
-
AND
public static final Tree.Kind AND
Used for instances ofBinaryTreerepresenting bitwise and logical "and"&.
-
XOR
public static final Tree.Kind XOR
Used for instances ofBinaryTreerepresenting bitwise and logical "xor"^.
-
OR
public static final Tree.Kind OR
Used for instances ofBinaryTreerepresenting bitwise and logical "or"|.
-
CONDITIONAL_AND
public static final Tree.Kind CONDITIONAL_AND
Used for instances ofBinaryTreerepresenting conditional-and&&.
-
CONDITIONAL_OR
public static final Tree.Kind CONDITIONAL_OR
Used for instances ofBinaryTreerepresenting conditional-or||.
-
MULTIPLY_ASSIGNMENT
public static final Tree.Kind MULTIPLY_ASSIGNMENT
Used for instances ofCompoundAssignmentTreerepresenting multiplication assignment*=.
-
DIVIDE_ASSIGNMENT
public static final Tree.Kind DIVIDE_ASSIGNMENT
Used for instances ofCompoundAssignmentTreerepresenting division assignment/=.
-
REMAINDER_ASSIGNMENT
public static final Tree.Kind REMAINDER_ASSIGNMENT
Used for instances ofCompoundAssignmentTreerepresenting remainder assignment%=.
-
PLUS_ASSIGNMENT
public static final Tree.Kind PLUS_ASSIGNMENT
Used for instances ofCompoundAssignmentTreerepresenting addition or string concatenation assignment+=.
-
MINUS_ASSIGNMENT
public static final Tree.Kind MINUS_ASSIGNMENT
Used for instances ofCompoundAssignmentTreerepresenting subtraction assignment-=.
-
LEFT_SHIFT_ASSIGNMENT
public static final Tree.Kind LEFT_SHIFT_ASSIGNMENT
Used for instances ofCompoundAssignmentTreerepresenting left shift assignment<<=.
-
RIGHT_SHIFT_ASSIGNMENT
public static final Tree.Kind RIGHT_SHIFT_ASSIGNMENT
Used for instances ofCompoundAssignmentTreerepresenting right shift assignment>>=.
-
UNSIGNED_RIGHT_SHIFT_ASSIGNMENT
public static final Tree.Kind UNSIGNED_RIGHT_SHIFT_ASSIGNMENT
Used for instances ofCompoundAssignmentTreerepresenting unsigned right shift assignment>>>=.
-
AND_ASSIGNMENT
public static final Tree.Kind AND_ASSIGNMENT
Used for instances ofCompoundAssignmentTreerepresenting bitwise and logical "and" assignment&=.
-
XOR_ASSIGNMENT
public static final Tree.Kind XOR_ASSIGNMENT
Used for instances ofCompoundAssignmentTreerepresenting bitwise and logical "xor" assignment^=.
-
OR_ASSIGNMENT
public static final Tree.Kind OR_ASSIGNMENT
Used for instances ofCompoundAssignmentTreerepresenting bitwise and logical "or" assignment|=.
-
INT_LITERAL
public static final Tree.Kind INT_LITERAL
Used for instances ofLiteralTreerepresenting an integral literal expression of typeint.
-
LONG_LITERAL
public static final Tree.Kind LONG_LITERAL
Used for instances ofLiteralTreerepresenting an integral literal expression of typelong.
-
FLOAT_LITERAL
public static final Tree.Kind FLOAT_LITERAL
Used for instances ofLiteralTreerepresenting a floating-point literal expression of typefloat.
-
DOUBLE_LITERAL
public static final Tree.Kind DOUBLE_LITERAL
Used for instances ofLiteralTreerepresenting a floating-point literal expression of typedouble.
-
BOOLEAN_LITERAL
public static final Tree.Kind BOOLEAN_LITERAL
Used for instances ofLiteralTreerepresenting a boolean literal expression of typeboolean.
-
CHAR_LITERAL
public static final Tree.Kind CHAR_LITERAL
Used for instances ofLiteralTreerepresenting a character literal expression of typechar.
-
STRING_LITERAL
public static final Tree.Kind STRING_LITERAL
Used for instances ofLiteralTreerepresenting a string literal expression of typeString.
-
NULL_LITERAL
public static final Tree.Kind NULL_LITERAL
Used for instances ofLiteralTreerepresenting the use ofnull.
-
UNBOUNDED_WILDCARD
public static final Tree.Kind UNBOUNDED_WILDCARD
Used for instances ofWildcardTreerepresenting an unbounded wildcard type argument.
-
EXTENDS_WILDCARD
public static final Tree.Kind EXTENDS_WILDCARD
Used for instances ofWildcardTreerepresenting an extends bounded wildcard type argument.
-
SUPER_WILDCARD
public static final Tree.Kind SUPER_WILDCARD
Used for instances ofWildcardTreerepresenting a super bounded wildcard type argument.
-
ERRONEOUS
public static final Tree.Kind ERRONEOUS
Used for instances ofErroneousTree.
-
INTERFACE
public static final Tree.Kind INTERFACE
Used for instances ofClassTreerepresenting interfaces.
-
ANNOTATION_TYPE
public static final Tree.Kind ANNOTATION_TYPE
Used for instances ofClassTreerepresenting annotation types.
-
MODULE
public static final Tree.Kind MODULE
Used for instances ofModuleTreerepresenting module declarations.
-
EXPORTS
public static final Tree.Kind EXPORTS
Used for instances ofExportsTreerepresenting exports directives in a module declaration.
-
OPENS
public static final Tree.Kind OPENS
Used for instances ofExportsTreerepresenting opens directives in a module declaration.
-
PROVIDES
public static final Tree.Kind PROVIDES
Used for instances ofProvidesTreerepresenting provides directives in a module declaration.
-
REQUIRES
public static final Tree.Kind REQUIRES
Used for instances ofRequiresTreerepresenting requires directives in a module declaration.
-
USES
public static final Tree.Kind USES
Used for instances ofUsesTreerepresenting uses directives in a module declaration.
-
OTHER
public static final Tree.Kind OTHER
An implementation-reserved node. This is the not the node you are looking for.
-
-
Method Detail
-
values
public static Tree.Kind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Tree.Kind c : Tree.Kind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Tree.Kind valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-