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.Default pattern tree.'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.Guarded pattern tree Introduced with Java 17 and JEP-406.Identifier 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.Null pattern tree.The 'opens' directive from java 9 module directives JLS9 - §7.7.2Package declaration.Parameterized type.Parenthesized expression.'instanceof' expression with pattern-matching.Common interface shared between all possible pattern as introduced with Java 17 and JEP-406.Primitive type.The 'provides' directive from java 9 module directives JLS9 - §7.7.4Record pattern tree.The '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.Typed Pattern tree.Postfix 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.