Package org.sonar.plugins.java.api.tree
Enum Tree.Kind
- java.lang.Object
-
- java.lang.Enum<Tree.Kind>
-
- org.sonar.plugins.java.api.tree.Tree.Kind
-
- All Implemented Interfaces:
com.sonar.sslr.api.AstNodeType
,Serializable
,Comparable<Tree.Kind>
,org.sonar.sslr.grammar.GrammarRuleKey
- Enclosing interface:
- Tree
public static enum Tree.Kind extends Enum<Tree.Kind> implements org.sonar.sslr.grammar.GrammarRuleKey
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Enum Constant Detail
-
COMPILATION_UNIT
public static final Tree.Kind COMPILATION_UNIT
-
CLASS
public static final Tree.Kind CLASS
-
ENUM
public static final Tree.Kind ENUM
- Since:
- Java 1.5
-
INTERFACE
public static final Tree.Kind INTERFACE
-
ANNOTATION_TYPE
public static final Tree.Kind ANNOTATION_TYPE
- Since:
- Java 1.5
-
RECORD
@Deprecated public static final Tree.Kind RECORD
Deprecated.Preview Feature- Since:
- Java 14
-
ENUM_CONSTANT
public static final Tree.Kind ENUM_CONSTANT
- Since:
- Java 1.5
-
INITIALIZER
public static final Tree.Kind INITIALIZER
-
STATIC_INITIALIZER
public static final Tree.Kind STATIC_INITIALIZER
-
CONSTRUCTOR
public static final Tree.Kind CONSTRUCTOR
-
METHOD
public static final Tree.Kind METHOD
-
BLOCK
public static final Tree.Kind BLOCK
-
EMPTY_STATEMENT
public static final Tree.Kind EMPTY_STATEMENT
-
LABELED_STATEMENT
public static final Tree.Kind LABELED_STATEMENT
-
EXPRESSION_STATEMENT
public static final Tree.Kind EXPRESSION_STATEMENT
-
IF_STATEMENT
public static final Tree.Kind IF_STATEMENT
-
ASSERT_STATEMENT
public static final Tree.Kind ASSERT_STATEMENT
- Since:
- Java 1.4
-
SWITCH_STATEMENT
public static final Tree.Kind SWITCH_STATEMENT
-
SWITCH_EXPRESSION
public static final Tree.Kind SWITCH_EXPRESSION
- Since:
- SonarJava 5.12: Support of Java 12
-
CASE_GROUP
public static final Tree.Kind CASE_GROUP
-
CASE_LABEL
public static final Tree.Kind CASE_LABEL
-
WHILE_STATEMENT
public static final Tree.Kind WHILE_STATEMENT
-
DO_STATEMENT
public static final Tree.Kind DO_STATEMENT
-
FOR_STATEMENT
public static final Tree.Kind FOR_STATEMENT
-
FOR_EACH_STATEMENT
public static final Tree.Kind FOR_EACH_STATEMENT
- Since:
- Java 1.5
-
BREAK_STATEMENT
public static final Tree.Kind BREAK_STATEMENT
-
YIELD_STATEMENT
public static final Tree.Kind YIELD_STATEMENT
- Since:
- Java 14
-
CONTINUE_STATEMENT
public static final Tree.Kind CONTINUE_STATEMENT
-
RETURN_STATEMENT
public static final Tree.Kind RETURN_STATEMENT
-
THROW_STATEMENT
public static final Tree.Kind THROW_STATEMENT
-
SYNCHRONIZED_STATEMENT
public static final Tree.Kind SYNCHRONIZED_STATEMENT
-
TRY_STATEMENT
public static final Tree.Kind TRY_STATEMENT
-
CATCH
public static final Tree.Kind CATCH
-
POSTFIX_INCREMENT
public static final Tree.Kind POSTFIX_INCREMENT
-
POSTFIX_DECREMENT
public static final Tree.Kind POSTFIX_DECREMENT
-
PREFIX_INCREMENT
public static final Tree.Kind PREFIX_INCREMENT
-
PREFIX_DECREMENT
public static final Tree.Kind PREFIX_DECREMENT
-
UNARY_PLUS
public static final Tree.Kind UNARY_PLUS
-
UNARY_MINUS
public static final Tree.Kind UNARY_MINUS
-
BITWISE_COMPLEMENT
public static final Tree.Kind BITWISE_COMPLEMENT
-
LOGICAL_COMPLEMENT
public static final Tree.Kind LOGICAL_COMPLEMENT
-
MULTIPLY
public static final Tree.Kind MULTIPLY
-
DIVIDE
public static final Tree.Kind DIVIDE
-
REMAINDER
public static final Tree.Kind REMAINDER
-
PLUS
public static final Tree.Kind PLUS
-
MINUS
public static final Tree.Kind MINUS
-
LEFT_SHIFT
public static final Tree.Kind LEFT_SHIFT
-
RIGHT_SHIFT
public static final Tree.Kind RIGHT_SHIFT
-
UNSIGNED_RIGHT_SHIFT
public static final Tree.Kind UNSIGNED_RIGHT_SHIFT
-
LESS_THAN
public static final Tree.Kind LESS_THAN
-
GREATER_THAN
public static final Tree.Kind GREATER_THAN
-
LESS_THAN_OR_EQUAL_TO
public static final Tree.Kind LESS_THAN_OR_EQUAL_TO
-
GREATER_THAN_OR_EQUAL_TO
public static final Tree.Kind GREATER_THAN_OR_EQUAL_TO
-
EQUAL_TO
public static final Tree.Kind EQUAL_TO
-
NOT_EQUAL_TO
public static final Tree.Kind NOT_EQUAL_TO
-
AND
public static final Tree.Kind AND
-
XOR
public static final Tree.Kind XOR
-
OR
public static final Tree.Kind OR
-
CONDITIONAL_AND
public static final Tree.Kind CONDITIONAL_AND
-
CONDITIONAL_OR
public static final Tree.Kind CONDITIONAL_OR
-
CONDITIONAL_EXPRESSION
public static final Tree.Kind CONDITIONAL_EXPRESSION
-
ARRAY_ACCESS_EXPRESSION
public static final Tree.Kind ARRAY_ACCESS_EXPRESSION
-
MEMBER_SELECT
public static final Tree.Kind MEMBER_SELECT
-
NEW_CLASS
public static final Tree.Kind NEW_CLASS
-
NEW_ARRAY
public static final Tree.Kind NEW_ARRAY
-
METHOD_INVOCATION
public static final Tree.Kind METHOD_INVOCATION
-
TYPE_CAST
public static final Tree.Kind TYPE_CAST
-
INSTANCE_OF
public static final Tree.Kind INSTANCE_OF
-
PARENTHESIZED_EXPRESSION
public static final Tree.Kind PARENTHESIZED_EXPRESSION
-
ASSIGNMENT
public static final Tree.Kind ASSIGNMENT
-
MULTIPLY_ASSIGNMENT
public static final Tree.Kind MULTIPLY_ASSIGNMENT
-
DIVIDE_ASSIGNMENT
public static final Tree.Kind DIVIDE_ASSIGNMENT
-
REMAINDER_ASSIGNMENT
public static final Tree.Kind REMAINDER_ASSIGNMENT
-
PLUS_ASSIGNMENT
public static final Tree.Kind PLUS_ASSIGNMENT
-
MINUS_ASSIGNMENT
public static final Tree.Kind MINUS_ASSIGNMENT
-
LEFT_SHIFT_ASSIGNMENT
public static final Tree.Kind LEFT_SHIFT_ASSIGNMENT
-
RIGHT_SHIFT_ASSIGNMENT
public static final Tree.Kind RIGHT_SHIFT_ASSIGNMENT
-
UNSIGNED_RIGHT_SHIFT_ASSIGNMENT
public static final Tree.Kind UNSIGNED_RIGHT_SHIFT_ASSIGNMENT
-
AND_ASSIGNMENT
public static final Tree.Kind AND_ASSIGNMENT
-
XOR_ASSIGNMENT
public static final Tree.Kind XOR_ASSIGNMENT
-
OR_ASSIGNMENT
public static final Tree.Kind OR_ASSIGNMENT
-
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
-
TEXT_BLOCK
public static final Tree.Kind TEXT_BLOCK
-
NULL_LITERAL
public static final Tree.Kind NULL_LITERAL
LiteralTree
null
-
IDENTIFIER
public static final Tree.Kind IDENTIFIER
-
VAR_TYPE
public static final Tree.Kind VAR_TYPE
-
VARIABLE
public static final Tree.Kind VARIABLE
-
ARRAY_TYPE
public static final Tree.Kind ARRAY_TYPE
-
PARAMETERIZED_TYPE
public static final Tree.Kind PARAMETERIZED_TYPE
- 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
- Since:
- Java 1.5
-
EXTENDS_WILDCARD
public static final Tree.Kind EXTENDS_WILDCARD
- Since:
- Java 1.5
-
SUPER_WILDCARD
public static final Tree.Kind SUPER_WILDCARD
- Since:
- Java 1.5
-
ANNOTATION
public static final Tree.Kind ANNOTATION
- Since:
- Java 1.5
-
MODIFIERS
public static final Tree.Kind MODIFIERS
-
LAMBDA_EXPRESSION
public static final Tree.Kind LAMBDA_EXPRESSION
- Since:
- Java 1.8
-
PRIMITIVE_TYPE
public static final Tree.Kind PRIMITIVE_TYPE
-
TYPE_PARAMETER
public static final Tree.Kind TYPE_PARAMETER
-
IMPORT
public static final Tree.Kind IMPORT
-
PACKAGE
public static final Tree.Kind PACKAGE
-
MODULE
public static final Tree.Kind MODULE
- Since:
- Java 9
-
REQUIRES_DIRECTIVE
public static final Tree.Kind REQUIRES_DIRECTIVE
- Since:
- Java 9
-
EXPORTS_DIRECTIVE
public static final Tree.Kind EXPORTS_DIRECTIVE
- Since:
- Java 9
-
OPENS_DIRECTIVE
public static final Tree.Kind OPENS_DIRECTIVE
- Since:
- Java 9
-
USES_DIRECTIVE
public static final Tree.Kind USES_DIRECTIVE
- Since:
- Java 9
-
PROVIDES_DIRECTIVE
public static final Tree.Kind PROVIDES_DIRECTIVE
- Since:
- Java 9
-
ARRAY_DIMENSION
public static final Tree.Kind ARRAY_DIMENSION
-
OTHER
public static final Tree.Kind OTHER
An implementation-reserved node.
-
TOKEN
public static final Tree.Kind TOKEN
-
TRIVIA
public static final Tree.Kind TRIVIA
-
INFERED_TYPE
public static final Tree.Kind INFERED_TYPE
-
TYPE_ARGUMENTS
public static final Tree.Kind TYPE_ARGUMENTS
-
METHOD_REFERENCE
public static final Tree.Kind METHOD_REFERENCE
-
TYPE_PARAMETERS
public static final Tree.Kind TYPE_PARAMETERS
-
ARGUMENTS
public static final Tree.Kind ARGUMENTS
-
LIST
public static final Tree.Kind LIST
-
-
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
-
-