All Classes and Interfaces

Class
Description
 
JDK 17 Preview feature (JEP-406), deprecated by design until it will be final java:S1874 = "@Deprecated" code should not be used
This class is intended for internal use during semantic analysis and should not be used in checks.
 
Runtime exception to be thrown during analysis, in case of major issue, for instance invalid format of a report to be parsed
 
Wrap an AnalysisWarnings instance, available since SQ API 7.4.
Class used to represent analyzer issue messages
 
Annotation.
 
 
 
 
 
Array access expression.
 
Describe an array dimension.
 
Array type.
'assert' statement.
 
Parent class for all ExpressionTrees, which allows to express them as their constant value
Assignment expression.
 
 
Default implementation of TreeVisitor.
This annotation should be placed on api elements that can be changed in the future versions and do not guarantee backward compatibility
Binary expression.
 
Block.
 
'break' statement.
 
 
 
 
Group of 'case's in a 'switch' statement.
 
'case' label in a 'switch' statement.
 
'catch' in a 'try' statement.
 
 
 
 
 
 
This batch extension should be extended to provide the classes to be used to instantiate checks.
Context for checks registration.
 
 
 
 
Class, enum, interface or annotation declaration.
 
 
Cognitive complexity and associated locations
 
 
Compilation unit.
 
Conditional expression.
 
 
'continue' statement.
 
 
 
 
 
 
 
Deprecated.
Preview Feature
JDK 17 Preview feature (JEP-406), deprecated by design until it will be final java:S1874 = "@Deprecated" code should not be used
'do' statement.
 
 
Empty statement.
 
Common interface for providing callbacks that are triggered at the end of a module's analysis, after all files have been scanned.
Enum constant.
 
Interface defining how a java check should react when errors are occurring during analysis.
 
The 'exports' directive from java 9 module directives JLS9 - §7.7.2
 
Expression statement.
 
Common interface for all types of expressions.
 
 
Saves information about lines directly into Sonar by using FileLinesContext.
 
 
Enhanced 'for' statement.
 
 
'for' statement.
 
 
Deprecated.
Preview Feature
JDK 17 Preview feature (JEP-406), deprecated by design until it will be final java:S1874 = "@Deprecated" code should not be used
Identifier expression.
 
'if' statement.
 
Marker exception class for rule parameters.
Common interface for all import clauses.
Import declaration.
 
 
 
 
'instanceof' expression.
 
 
 
 
 
 
 
 
 
Subscription visitor providing an API to report issues.
 
 
Marker interface for all checks of the java analyzer.
 
 
Common interface for all checks analyzing a java file.
Context injected in check classes and used to report issues.
Message and syntaxNode for a secondary location.
 
 
 
 
 
Keywords for java grammar.
Punctuators for java grammar.
 
 
 
 
Interface to get the mapping between java classes and files (as multiple classes can be declared in one file).
Restricted keywords for java grammar.
Adapted from https://github.com/JetBrains/intellij-community/blob/203.5981/jps/model-impl/src/org/jetbrains/jps/model/java/impl/JavaSdkUtil.java
 
 
This interface is dedicated to mark TypeTrees which will requires completion of their annotations during parsing.
 
 
 
 
 
 
 
 
 
Represents the java version used by the project under analysis.
Implementing this interface allows a check to be executed - or not - during analysis, depending of expected java version.
 
 
 
 
 
 
 
 
 
 
 
Marker interface for code visitors that are invoked on generated Java code from JSP pages.
 
 
 
 
Labeled statement.
 
Lambda expression.
 
 
 
ListTree<T extends Tree>
 
 
Literal expression.
 
 
 
 
Member select expression.
 
Method invocation expression.
 
 
Immutable helper interface to help to identify method with given a Type, Name and Parameters.
 
 
 
 
 
Used to determine the deepest nesting level of a method, calculated starting from 0 and increased by 1 for each if, while, for, foreach, lambda, switch, and try block found nested within each other.
Method reference.
 
 
Method or annotation type element declaration.
 
 
 
 
 
 
Modifiers.
 
 
 
Module declaration.
 
Common interface for all the module directives JLS9 - §7.7
 
 
Module Name.
 
 
Array creation expression.
 
Class instance creation expression.
 
 
Deprecated.
Preview Feature
JDK 17 Preview feature (JEP-406), deprecated by design until it will be final java:S1874 = "@Deprecated" code should not be used
 
The 'opens' directive from java 9 module directives JLS9 - §7.7.2
 
Package declaration.
 
Parameterized type.
Parenthesized expression.
 
'instanceof' expression with pattern-matching.
Deprecated.
Preview Feature
 
 
Primitive type.
 
The 'provides' directive from java 9 module directives JLS9 - §7.7.4
 
 
 
 
Deprecated.
Preview Feature
 
 
Marker interface for rules targeting regexes
Issue location holder, replacing regex syntax elements into text spans for reporting
 
The 'requires' directive from java 9 module directives JLS9 - §7.7.1
 
 
'return' statement.
 
 
 
SMAP format is described by JSR 45 JSR 45 defines more generic format supporting translation from multiple languages, here we implement only subset used by Jasper for JSP to Java translation.
 
 
 
Represents source map between generated Java code and JSP file
 
 
Common interface for all types of statements.
 
Static Initializer.
 
 
'switch' expression.
 
'switch' statement.
 
Common interface shared between SwitchStatementTree and SwitchExpressionTree
 
Interface to access symbol information.
Label symbol.
Symbol for methods.
Symbol for a type : class, enum, interface or annotation.
Symbol for field, method parameters and local variables.
Holds the metadata information (annotations) of a symbol.
Occurrence of an annotation on a symbol.
Value of a property of an annotation.
 
 
 
 
Predefined symbols.
 
'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.
 
Interface to access resolved type of an expression or a Type.
Type for arrays.
Primitive java types.
 
 
 
Cast expression.
 
 
Type parameter.
 
Deprecated.
Preview Feature
JDK 17 Preview feature (JEP-406), deprecated by design until it will be final java:S1874 = "@Deprecated" code should not be used
 
Postfix or unary expression.
Union type expression in a multi-catch.
The 'uses' directive from java 9 module directives JLS9 - §7.7.3
 
 
Variable declaration.
 
'var' type tree used for local variables.
 
This annotation should be placed on elements that exists, or is more widely visible than otherwise necessary, only for use in test code.
 
 
'while' statement.
 
Wildcard type argument.
'yield' statement.