org.sonar.plugins.java.api.tree
Enum Tree.Kind

java.lang.Object
  extended by java.lang.Enum<Tree.Kind>
      extended by org.sonar.plugins.java.api.tree.Tree.Kind
All Implemented Interfaces:
Serializable, Comparable<Tree.Kind>
Enclosing interface:
Tree

public static enum Tree.Kind
extends Enum<Tree.Kind>


Enum Constant Summary
AND
          BinaryExpressionTree &
AND_ASSIGNMENT
          AssignmentExpressionTree &=
ANNOTATION
          AnnotationTree
ANNOTATION_TYPE
          ClassTree
ARRAY_ACCESS_EXPRESSION
          ArrayAccessExpressionTree
ARRAY_TYPE
          ArrayTypeTree
ASSERT_STATEMENT
          AssertStatementTree
ASSIGNMENT
          AssignmentExpressionTree =
BITWISE_COMPLEMENT
          UnaryExpressionTree ~
BLOCK
          BlockTree
BOOLEAN_LITERAL
          LiteralTree boolean
BREAK_STATEMENT
          BreakStatementTree
CASE_GROUP
          CaseGroupTree
CASE_LABEL
          CaseLabelTree
CATCH
          CatchTree
CHAR_LITERAL
          LiteralTree char
CLASS
          ClassTree
COMPILATION_UNIT
          CompilationUnitTree
CONDITIONAL_AND
          BinaryExpressionTree &&
CONDITIONAL_EXPRESSION
          ConditionalExpressionTree
CONDITIONAL_OR
          BinaryExpressionTree ||
CONSTRUCTOR
          MethodTree
CONTINUE_STATEMENT
          ContinueStatementTree
DIVIDE
          BinaryExpressionTree /
DIVIDE_ASSIGNMENT
          AssignmentExpressionTree /=
DO_STATEMENT
          DoWhileStatementTree
DOUBLE_LITERAL
          LiteralTree double
EMPTY_STATEMENT
          EmptyStatementTree
ENUM
          ClassTree
ENUM_CONSTANT
          EnumConstantTree
EQUAL_TO
          BinaryExpressionTree ==
EXPRESSION_STATEMENT
          ExpressionStatementTree
EXTENDS_WILDCARD
          WildcardTree
FLOAT_LITERAL
          LiteralTree float
FOR_EACH_STATEMENT
          ForEachStatement
FOR_STATEMENT
          ForStatementTree
GREATER_THAN
          BinaryExpressionTree >
GREATER_THAN_OR_EQUAL_TO
          BinaryExpressionTree >=
IDENTIFIER
          IdentifierTree
IF_STATEMENT
          IfStatementTree
INITIALIZER
          BlockTree
INSTANCE_OF
          InstanceOfTree
INT_LITERAL
          LiteralTree int
INTERFACE
          ClassTree
LABELED_STATEMENT
          LabeledStatementTree
LAMBDA_EXPRESSION
          LambdaExpressionTree
LEFT_SHIFT
          BinaryExpressionTree <<
LEFT_SHIFT_ASSIGNMENT
          AssignmentExpressionTree <<=
LESS_THAN
          BinaryExpressionTree <
LESS_THAN_OR_EQUAL_TO
          BinaryExpressionTree <=
LOGICAL_COMPLEMENT
          UnaryExpressionTree !
LONG_LITERAL
          LiteralTree long
MEMBER_SELECT
          MemberSelectExpressionTree
METHOD
          MethodTree
METHOD_INVOCATION
          MethodInvocationTree
MINUS
          BinaryExpressionTree -
MINUS_ASSIGNMENT
          AssignmentExpressionTree -=
MODIFIERS
          ModifiersTree
MULTIPLY
          BinaryExpressionTree *
MULTIPLY_ASSIGNMENT
          AssignmentExpressionTree *=
NEW_ARRAY
          NewArrayTree
NEW_CLASS
          NewClassTree
NOT_EQUAL_TO
          BinaryExpressionTree !=
NULL_LITERAL
          LiteralTree null
OR
          BinaryExpressionTree |
OR_ASSIGNMENT
          AssignmentExpressionTree |=
OTHER
          An implementation-reserved node.
PARAMETERIZED_TYPE
          ParameterizedTypeTree
PARENTHESIZED_EXPRESSION
          ParenthesizedTree
PLUS
          BinaryExpressionTree +
PLUS_ASSIGNMENT
          AssignmentExpressionTree +=
POSTFIX_DECREMENT
          UnaryExpressionTree --
POSTFIX_INCREMENT
          UnaryExpressionTree ++
PREFIX_DECREMENT
          UnaryExpressionTree --
PREFIX_INCREMENT
          UnaryExpressionTree ++
REMAINDER
          BinaryExpressionTree %
REMAINDER_ASSIGNMENT
          AssignmentExpressionTree %=
RETURN_STATEMENT
          ReturnStatementTree
RIGHT_SHIFT
          BinaryExpressionTree >>
RIGHT_SHIFT_ASSIGNMENT
          AssignmentExpressionTree >>=
STATIC_INITIALIZER
          BlockTree
STRING_LITERAL
          LiteralTree
SUPER_WILDCARD
          WildcardTree
SWITCH_STATEMENT
          SwitchStatementTree
SYNCHRONIZED_STATEMENT
          SynchronizedStatementTree
THROW_STATEMENT
          ThrowStatementTree
TRY_STATEMENT
          TryStatementTree
TYPE_CAST
          TypeCastTree
UNARY_MINUS
          UnaryExpressionTree -
UNARY_PLUS
          UnaryExpressionTree +
UNBOUNDED_WILDCARD
          WildcardTree
UNION_TYPE
           
UNSIGNED_RIGHT_SHIFT
          BinaryExpressionTree >>>
UNSIGNED_RIGHT_SHIFT_ASSIGNMENT
          AssignmentExpressionTree >>>=
VARIABLE
          VariableTree
WHILE_STATEMENT
          WhileStatementTree
XOR
          BinaryExpressionTree ^
XOR_ASSIGNMENT
          AssignmentExpressionTree ^=
 
Method Summary
 Class<? extends Tree> getAssociatedInterface()
           
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

COMPILATION_UNIT

public static final Tree.Kind COMPILATION_UNIT
CompilationUnitTree


CLASS

public static final Tree.Kind CLASS
ClassTree


ENUM

public static final Tree.Kind ENUM
ClassTree

Since:
Java 1.5

INTERFACE

public static final Tree.Kind INTERFACE
ClassTree


ANNOTATION_TYPE

public static final Tree.Kind ANNOTATION_TYPE
ClassTree

Since:
Java 1.5

ENUM_CONSTANT

public static final Tree.Kind ENUM_CONSTANT
EnumConstantTree

Since:
Java 1.5

INITIALIZER

public static final Tree.Kind INITIALIZER
BlockTree


STATIC_INITIALIZER

public static final Tree.Kind STATIC_INITIALIZER
BlockTree


CONSTRUCTOR

public static final Tree.Kind CONSTRUCTOR
MethodTree


METHOD

public static final Tree.Kind METHOD
MethodTree


BLOCK

public static final Tree.Kind BLOCK
BlockTree


EMPTY_STATEMENT

public static final Tree.Kind EMPTY_STATEMENT
EmptyStatementTree


LABELED_STATEMENT

public static final Tree.Kind LABELED_STATEMENT
LabeledStatementTree


EXPRESSION_STATEMENT

public static final Tree.Kind EXPRESSION_STATEMENT
ExpressionStatementTree


IF_STATEMENT

public static final Tree.Kind IF_STATEMENT
IfStatementTree


ASSERT_STATEMENT

public static final Tree.Kind ASSERT_STATEMENT
AssertStatementTree

Since:
Java 1.4

SWITCH_STATEMENT

public static final Tree.Kind SWITCH_STATEMENT
SwitchStatementTree


CASE_GROUP

public static final Tree.Kind CASE_GROUP
CaseGroupTree


CASE_LABEL

public static final Tree.Kind CASE_LABEL
CaseLabelTree


WHILE_STATEMENT

public static final Tree.Kind WHILE_STATEMENT
WhileStatementTree


DO_STATEMENT

public static final Tree.Kind DO_STATEMENT
DoWhileStatementTree


FOR_STATEMENT

public static final Tree.Kind FOR_STATEMENT
ForStatementTree


FOR_EACH_STATEMENT

public static final Tree.Kind FOR_EACH_STATEMENT
ForEachStatement

Since:
Java 1.5

BREAK_STATEMENT

public static final Tree.Kind BREAK_STATEMENT
BreakStatementTree


CONTINUE_STATEMENT

public static final Tree.Kind CONTINUE_STATEMENT
ContinueStatementTree


RETURN_STATEMENT

public static final Tree.Kind RETURN_STATEMENT
ReturnStatementTree


THROW_STATEMENT

public static final Tree.Kind THROW_STATEMENT
ThrowStatementTree


SYNCHRONIZED_STATEMENT

public static final Tree.Kind SYNCHRONIZED_STATEMENT
SynchronizedStatementTree


TRY_STATEMENT

public static final Tree.Kind TRY_STATEMENT
TryStatementTree


CATCH

public static final Tree.Kind CATCH
CatchTree


POSTFIX_INCREMENT

public static final Tree.Kind POSTFIX_INCREMENT
UnaryExpressionTree ++


POSTFIX_DECREMENT

public static final Tree.Kind POSTFIX_DECREMENT
UnaryExpressionTree --


PREFIX_INCREMENT

public static final Tree.Kind PREFIX_INCREMENT
UnaryExpressionTree ++


PREFIX_DECREMENT

public static final Tree.Kind PREFIX_DECREMENT
UnaryExpressionTree --


UNARY_PLUS

public static final Tree.Kind UNARY_PLUS
UnaryExpressionTree +


UNARY_MINUS

public static final Tree.Kind UNARY_MINUS
UnaryExpressionTree -


BITWISE_COMPLEMENT

public static final Tree.Kind BITWISE_COMPLEMENT
UnaryExpressionTree ~


LOGICAL_COMPLEMENT

public static final Tree.Kind LOGICAL_COMPLEMENT
UnaryExpressionTree !


MULTIPLY

public static final Tree.Kind MULTIPLY
BinaryExpressionTree *


DIVIDE

public static final Tree.Kind DIVIDE
BinaryExpressionTree /


REMAINDER

public static final Tree.Kind REMAINDER
BinaryExpressionTree %


PLUS

public static final Tree.Kind PLUS
BinaryExpressionTree +


MINUS

public static final Tree.Kind MINUS
BinaryExpressionTree -


LEFT_SHIFT

public static final Tree.Kind LEFT_SHIFT
BinaryExpressionTree <<


RIGHT_SHIFT

public static final Tree.Kind RIGHT_SHIFT
BinaryExpressionTree >>


UNSIGNED_RIGHT_SHIFT

public static final Tree.Kind UNSIGNED_RIGHT_SHIFT
BinaryExpressionTree >>>


LESS_THAN

public static final Tree.Kind LESS_THAN
BinaryExpressionTree <


GREATER_THAN

public static final Tree.Kind GREATER_THAN
BinaryExpressionTree >


LESS_THAN_OR_EQUAL_TO

public static final Tree.Kind LESS_THAN_OR_EQUAL_TO
BinaryExpressionTree <=


GREATER_THAN_OR_EQUAL_TO

public static final Tree.Kind GREATER_THAN_OR_EQUAL_TO
BinaryExpressionTree >=


EQUAL_TO

public static final Tree.Kind EQUAL_TO
BinaryExpressionTree ==


NOT_EQUAL_TO

public static final Tree.Kind NOT_EQUAL_TO
BinaryExpressionTree !=


AND

public static final Tree.Kind AND
BinaryExpressionTree &


XOR

public static final Tree.Kind XOR
BinaryExpressionTree ^


OR

public static final Tree.Kind OR
BinaryExpressionTree |


CONDITIONAL_AND

public static final Tree.Kind CONDITIONAL_AND
BinaryExpressionTree &&


CONDITIONAL_OR

public static final Tree.Kind CONDITIONAL_OR
BinaryExpressionTree ||


CONDITIONAL_EXPRESSION

public static final Tree.Kind CONDITIONAL_EXPRESSION
ConditionalExpressionTree


ARRAY_ACCESS_EXPRESSION

public static final Tree.Kind ARRAY_ACCESS_EXPRESSION
ArrayAccessExpressionTree


MEMBER_SELECT

public static final Tree.Kind MEMBER_SELECT
MemberSelectExpressionTree


NEW_CLASS

public static final Tree.Kind NEW_CLASS
NewClassTree


NEW_ARRAY

public static final Tree.Kind NEW_ARRAY
NewArrayTree


METHOD_INVOCATION

public static final Tree.Kind METHOD_INVOCATION
MethodInvocationTree


TYPE_CAST

public static final Tree.Kind TYPE_CAST
TypeCastTree


INSTANCE_OF

public static final Tree.Kind INSTANCE_OF
InstanceOfTree


PARENTHESIZED_EXPRESSION

public static final Tree.Kind PARENTHESIZED_EXPRESSION
ParenthesizedTree


ASSIGNMENT

public static final Tree.Kind ASSIGNMENT
AssignmentExpressionTree =


MULTIPLY_ASSIGNMENT

public static final Tree.Kind MULTIPLY_ASSIGNMENT
AssignmentExpressionTree *=


DIVIDE_ASSIGNMENT

public static final Tree.Kind DIVIDE_ASSIGNMENT
AssignmentExpressionTree /=


REMAINDER_ASSIGNMENT

public static final Tree.Kind REMAINDER_ASSIGNMENT
AssignmentExpressionTree %=


PLUS_ASSIGNMENT

public static final Tree.Kind PLUS_ASSIGNMENT
AssignmentExpressionTree +=


MINUS_ASSIGNMENT

public static final Tree.Kind MINUS_ASSIGNMENT
AssignmentExpressionTree -=


LEFT_SHIFT_ASSIGNMENT

public static final Tree.Kind LEFT_SHIFT_ASSIGNMENT
AssignmentExpressionTree <<=


RIGHT_SHIFT_ASSIGNMENT

public static final Tree.Kind RIGHT_SHIFT_ASSIGNMENT
AssignmentExpressionTree >>=


UNSIGNED_RIGHT_SHIFT_ASSIGNMENT

public static final Tree.Kind UNSIGNED_RIGHT_SHIFT_ASSIGNMENT
AssignmentExpressionTree >>>=


AND_ASSIGNMENT

public static final Tree.Kind AND_ASSIGNMENT
AssignmentExpressionTree &=


XOR_ASSIGNMENT

public static final Tree.Kind XOR_ASSIGNMENT
AssignmentExpressionTree ^=


OR_ASSIGNMENT

public static final Tree.Kind OR_ASSIGNMENT
AssignmentExpressionTree |=


INT_LITERAL

public static final Tree.Kind INT_LITERAL
LiteralTree int


LONG_LITERAL

public static final Tree.Kind LONG_LITERAL
LiteralTree long


FLOAT_LITERAL

public static final Tree.Kind FLOAT_LITERAL
LiteralTree float


DOUBLE_LITERAL

public static final Tree.Kind DOUBLE_LITERAL
LiteralTree double


BOOLEAN_LITERAL

public static final Tree.Kind BOOLEAN_LITERAL
LiteralTree boolean


CHAR_LITERAL

public static final Tree.Kind CHAR_LITERAL
LiteralTree char


STRING_LITERAL

public static final Tree.Kind STRING_LITERAL
LiteralTree


NULL_LITERAL

public static final Tree.Kind NULL_LITERAL
LiteralTree null


IDENTIFIER

public static final Tree.Kind IDENTIFIER
IdentifierTree


VARIABLE

public static final Tree.Kind VARIABLE
VariableTree


ARRAY_TYPE

public static final Tree.Kind ARRAY_TYPE
ArrayTypeTree


PARAMETERIZED_TYPE

public static final Tree.Kind PARAMETERIZED_TYPE
ParameterizedTypeTree

Since:
Java 1.5

UNION_TYPE

public static final Tree.Kind UNION_TYPE
Since:
Java 1.7

UNBOUNDED_WILDCARD

public static final Tree.Kind UNBOUNDED_WILDCARD
WildcardTree

Since:
Java 1.5

EXTENDS_WILDCARD

public static final Tree.Kind EXTENDS_WILDCARD
WildcardTree

Since:
Java 1.5

SUPER_WILDCARD

public static final Tree.Kind SUPER_WILDCARD
WildcardTree

Since:
Java 1.5

ANNOTATION

public static final Tree.Kind ANNOTATION
AnnotationTree

Since:
Java 1.5

MODIFIERS

public static final Tree.Kind MODIFIERS
ModifiersTree


LAMBDA_EXPRESSION

public static final Tree.Kind LAMBDA_EXPRESSION
LambdaExpressionTree

Since:
Java 1.8

OTHER

public static final Tree.Kind OTHER
An implementation-reserved node.

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 name
NullPointerException - if the argument is null

getAssociatedInterface

public Class<? extends Tree> getAssociatedInterface()


Copyright © 2012-2014 SonarSource. All Rights Reserved.