Package org.sonar.java
Class DefaultJavaResourceLocator
java.lang.Object
org.sonar.java.DefaultJavaResourceLocator
- All Implemented Interfaces:
JavaCheck
,JavaFileScanner
,JavaResourceLocator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription.class files to be analyzed.Classpath configured for the project.org.sonar.api.batch.fs.InputFile
findResourceByClassName
(String className) Retrieve a SonarQube resource by the class name.void
scanFile
(JavaFileScannerContext context) Method called after parsing and semantic analysis has been done on file.
-
Constructor Details
-
DefaultJavaResourceLocator
-
-
Method Details
-
findResourceByClassName
Description copied from interface:JavaResourceLocator
Retrieve a SonarQube resource by the class name.- Specified by:
findResourceByClassName
in interfaceJavaResourceLocator
- Parameters:
className
- fully qualified name of the analyzed class- Returns:
- null if not found
-
classFilesToAnalyze
Description copied from interface:JavaResourceLocator
.class files to be analyzed. Used by the findbugs plugin.- Specified by:
classFilesToAnalyze
in interfaceJavaResourceLocator
- Returns:
- a list of .class files corresponding to the source files to be analyzed.
-
classpath
Description copied from interface:JavaResourceLocator
Classpath configured for the project. This classpath method is used by the findbugs plugin to configure the analysis.- Specified by:
classpath
in interfaceJavaResourceLocator
- Returns:
- the list of jar and class files constituting the classpath of the analyzed project.
-
scanFile
Description copied from interface:JavaFileScanner
Method called after parsing and semantic analysis has been done on file.- Specified by:
scanFile
in interfaceJavaFileScanner
- Parameters:
context
- Context of analysis containing the parsed tree.
-