Package org.sonar.plugins.java.api.tree
@ParametersAreNonnullByDefault
@MethodsAreNonnullByDefault
package org.sonar.plugins.java.api.tree
Provides interfaces to represent Java source code as syntax tree.
-
ClassDescriptionAnnotation.Array access expression.Describe an array dimension.Array type.'assert' statement.Assignment expression.Default implementation of
TreeVisitor
.Binary expression.Block.'break' statement.Group of 'case's in a 'switch' statement.'case' label in a 'switch' statement.'catch' in a 'try' statement.Class, enum, interface or annotation declaration.Compilation unit.Conditional expression.'continue' statement.Deprecated.Preview Feature'do' statement.Empty statement.Enum constant.The 'exports' directive from java 9 module directives JLS9 - §7.7.2Expression statement.Common interface for all types of expressions.Enhanced 'for' statement.'for' statement.Deprecated.Preview FeatureIdentifier expression.'if' statement.Common interface for all import clauses.Import declaration.'instanceof' expression.Labeled statement.Lambda expression.Literal expression.Member select expression.Method invocation expression.Method reference.Method or annotation type element declaration.Modifiers.Module declaration.Common interface for all the module directives JLS9 - §7.7Module Name.Array creation expression.Class instance creation expression.Deprecated.Preview FeatureThe 'opens' directive from java 9 module directives JLS9 - §7.7.2Package declaration.Parameterized type.Parenthesized expression.'instanceof' expression with pattern-matching.Deprecated.Preview FeaturePrimitive type.The 'provides' directive from java 9 module directives JLS9 - §7.7.4Deprecated.Preview FeatureThe 'requires' directive from java 9 module directives JLS9 - §7.7.1'return' statement.Common interface for all types of statements.Static Initializer.'switch' expression.'switch' statement.Common interface shared betweenSwitchStatementTree
andSwitchExpressionTree
'synchronized' statement.Represents a token in the syntax tree.Represents a Trivia in the SyntaxTree.'throw' statement.Common interface for all nodes in a syntax tree.'try' statement.Cast expression.Type parameter.Deprecated.Preview FeaturePostfix or unary expression.Union type expression in a multi-catch.The 'uses' directive from java 9 module directives JLS9 - §7.7.3Variable declaration.'var' type tree used for local variables.'while' statement.Wildcard type argument.'yield' statement.