Module jdk.compiler

Enum Tree.Kind

    • Enum Constant Detail

      • ANNOTATED_TYPE

        public static final Tree.Kind ANNOTATED_TYPE
        Used for instances of AnnotatedTypeTree representing annotated types.
      • ANNOTATION

        public static final Tree.Kind ANNOTATION
        Used for instances of AnnotationTree representing declaration annotations.
      • TYPE_ANNOTATION

        public static final Tree.Kind TYPE_ANNOTATION
        Used for instances of AnnotationTree representing type annotations.
      • CLASS

        public static final Tree.Kind CLASS
        Used for instances of ClassTree representing classes.
      • SWITCH_EXPRESSION

        @Deprecated(forRemoval=true,
                    since="12")
        public static final Tree.Kind SWITCH_EXPRESSION
        Deprecated, for removal: This API element is subject to removal in a future version.
        This enum constant is modeling switch expressions, which are part of a preview feature and may be removed if the preview feature is removed.
        Used for instances of SwitchExpressionTree.
        Since:
        12
      • POSTFIX_INCREMENT

        public static final Tree.Kind POSTFIX_INCREMENT
        Used for instances of UnaryTree representing postfix increment operator ++.
      • POSTFIX_DECREMENT

        public static final Tree.Kind POSTFIX_DECREMENT
        Used for instances of UnaryTree representing postfix decrement operator --.
      • PREFIX_INCREMENT

        public static final Tree.Kind PREFIX_INCREMENT
        Used for instances of UnaryTree representing prefix increment operator ++.
      • PREFIX_DECREMENT

        public static final Tree.Kind PREFIX_DECREMENT
        Used for instances of UnaryTree representing prefix decrement operator --.
      • UNARY_PLUS

        public static final Tree.Kind UNARY_PLUS
        Used for instances of UnaryTree representing unary plus operator +.
      • UNARY_MINUS

        public static final Tree.Kind UNARY_MINUS
        Used for instances of UnaryTree representing unary minus operator -.
      • BITWISE_COMPLEMENT

        public static final Tree.Kind BITWISE_COMPLEMENT
        Used for instances of UnaryTree representing bitwise complement operator ~.
      • LOGICAL_COMPLEMENT

        public static final Tree.Kind LOGICAL_COMPLEMENT
        Used for instances of UnaryTree representing logical complement operator !.
      • MULTIPLY

        public static final Tree.Kind MULTIPLY
        Used for instances of BinaryTree representing multiplication *.
      • DIVIDE

        public static final Tree.Kind DIVIDE
        Used for instances of BinaryTree representing division /.
      • REMAINDER

        public static final Tree.Kind REMAINDER
        Used for instances of BinaryTree representing remainder %.
      • PLUS

        public static final Tree.Kind PLUS
        Used for instances of BinaryTree representing addition or string concatenation +.
      • MINUS

        public static final Tree.Kind MINUS
        Used for instances of BinaryTree representing subtraction -.
      • LEFT_SHIFT

        public static final Tree.Kind LEFT_SHIFT
        Used for instances of BinaryTree representing left shift <<.
      • RIGHT_SHIFT

        public static final Tree.Kind RIGHT_SHIFT
        Used for instances of BinaryTree representing right shift >>.
      • UNSIGNED_RIGHT_SHIFT

        public static final Tree.Kind UNSIGNED_RIGHT_SHIFT
        Used for instances of BinaryTree representing unsigned right shift >>>.
      • LESS_THAN

        public static final Tree.Kind LESS_THAN
        Used for instances of BinaryTree representing less-than <.
      • GREATER_THAN

        public static final Tree.Kind GREATER_THAN
        Used for instances of BinaryTree representing greater-than >.
      • LESS_THAN_EQUAL

        public static final Tree.Kind LESS_THAN_EQUAL
        Used for instances of BinaryTree representing less-than-equal <=.
      • GREATER_THAN_EQUAL

        public static final Tree.Kind GREATER_THAN_EQUAL
        Used for instances of BinaryTree representing greater-than-equal >=.
      • EQUAL_TO

        public static final Tree.Kind EQUAL_TO
        Used for instances of BinaryTree representing equal-to ==.
      • NOT_EQUAL_TO

        public static final Tree.Kind NOT_EQUAL_TO
        Used for instances of BinaryTree representing not-equal-to !=.
      • AND

        public static final Tree.Kind AND
        Used for instances of BinaryTree representing bitwise and logical "and" &.
      • XOR

        public static final Tree.Kind XOR
        Used for instances of BinaryTree representing bitwise and logical "xor" ^.
      • OR

        public static final Tree.Kind OR
        Used for instances of BinaryTree representing bitwise and logical "or" |.
      • CONDITIONAL_AND

        public static final Tree.Kind CONDITIONAL_AND
        Used for instances of BinaryTree representing conditional-and &&.
      • CONDITIONAL_OR

        public static final Tree.Kind CONDITIONAL_OR
        Used for instances of BinaryTree representing conditional-or ||.
      • MULTIPLY_ASSIGNMENT

        public static final Tree.Kind MULTIPLY_ASSIGNMENT
        Used for instances of CompoundAssignmentTree representing multiplication assignment *=.
      • REMAINDER_ASSIGNMENT

        public static final Tree.Kind REMAINDER_ASSIGNMENT
        Used for instances of CompoundAssignmentTree representing remainder assignment %=.
      • PLUS_ASSIGNMENT

        public static final Tree.Kind PLUS_ASSIGNMENT
        Used for instances of CompoundAssignmentTree representing addition or string concatenation assignment +=.
      • LEFT_SHIFT_ASSIGNMENT

        public static final Tree.Kind LEFT_SHIFT_ASSIGNMENT
        Used for instances of CompoundAssignmentTree representing left shift assignment <<=.
      • RIGHT_SHIFT_ASSIGNMENT

        public static final Tree.Kind RIGHT_SHIFT_ASSIGNMENT
        Used for instances of CompoundAssignmentTree representing right shift assignment >>=.
      • UNSIGNED_RIGHT_SHIFT_ASSIGNMENT

        public static final Tree.Kind UNSIGNED_RIGHT_SHIFT_ASSIGNMENT
        Used for instances of CompoundAssignmentTree representing unsigned right shift assignment >>>=.
      • AND_ASSIGNMENT

        public static final Tree.Kind AND_ASSIGNMENT
        Used for instances of CompoundAssignmentTree representing bitwise and logical "and" assignment &=.
      • XOR_ASSIGNMENT

        public static final Tree.Kind XOR_ASSIGNMENT
        Used for instances of CompoundAssignmentTree representing bitwise and logical "xor" assignment ^=.
      • OR_ASSIGNMENT

        public static final Tree.Kind OR_ASSIGNMENT
        Used for instances of CompoundAssignmentTree representing bitwise and logical "or" assignment |=.
      • INT_LITERAL

        public static final Tree.Kind INT_LITERAL
        Used for instances of LiteralTree representing an integral literal expression of type int.
      • LONG_LITERAL

        public static final Tree.Kind LONG_LITERAL
        Used for instances of LiteralTree representing an integral literal expression of type long.
      • FLOAT_LITERAL

        public static final Tree.Kind FLOAT_LITERAL
        Used for instances of LiteralTree representing a floating-point literal expression of type float.
      • DOUBLE_LITERAL

        public static final Tree.Kind DOUBLE_LITERAL
        Used for instances of LiteralTree representing a floating-point literal expression of type double.
      • BOOLEAN_LITERAL

        public static final Tree.Kind BOOLEAN_LITERAL
        Used for instances of LiteralTree representing a boolean literal expression of type boolean.
      • CHAR_LITERAL

        public static final Tree.Kind CHAR_LITERAL
        Used for instances of LiteralTree representing a character literal expression of type char.
      • STRING_LITERAL

        public static final Tree.Kind STRING_LITERAL
        Used for instances of LiteralTree representing a string literal expression of type String.
      • NULL_LITERAL

        public static final Tree.Kind NULL_LITERAL
        Used for instances of LiteralTree representing the use of null.
      • UNBOUNDED_WILDCARD

        public static final Tree.Kind UNBOUNDED_WILDCARD
        Used for instances of WildcardTree representing an unbounded wildcard type argument.
      • EXTENDS_WILDCARD

        public static final Tree.Kind EXTENDS_WILDCARD
        Used for instances of WildcardTree representing an extends bounded wildcard type argument.
      • SUPER_WILDCARD

        public static final Tree.Kind SUPER_WILDCARD
        Used for instances of WildcardTree representing a super bounded wildcard type argument.
      • INTERFACE

        public static final Tree.Kind INTERFACE
        Used for instances of ClassTree representing interfaces.
      • ENUM

        public static final Tree.Kind ENUM
        Used for instances of ClassTree representing enums.
      • ANNOTATION_TYPE

        public static final Tree.Kind ANNOTATION_TYPE
        Used for instances of ClassTree representing annotation types.
      • MODULE

        public static final Tree.Kind MODULE
        Used for instances of ModuleTree representing module declarations.
      • EXPORTS

        public static final Tree.Kind EXPORTS
        Used for instances of ExportsTree representing exports directives in a module declaration.
      • OPENS

        public static final Tree.Kind OPENS
        Used for instances of ExportsTree representing opens directives in a module declaration.
      • PROVIDES

        public static final Tree.Kind PROVIDES
        Used for instances of ProvidesTree representing provides directives in a module declaration.
      • REQUIRES

        public static final Tree.Kind REQUIRES
        Used for instances of RequiresTree representing requires directives in a module declaration.
      • USES

        public static final Tree.Kind USES
        Used for instances of UsesTree representing 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.
        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 name
        NullPointerException - if the argument is null
      • asInterface

        public Class<? extends Tree> asInterface()
        Returns the associated interface type that uses this kind.
        Returns:
        the associated interface