public class DefaultJavaResourceLocator extends Object implements JavaResourceLocator
| Constructor and Description |
|---|
DefaultJavaResourceLocator(org.sonar.api.batch.fs.FileSystem fs,
JavaClasspath javaClasspath) |
| Modifier and Type | Method and Description |
|---|---|
Collection<File> |
classFilesToAnalyze()
.class files to be analyzed.
|
Collection<File> |
classpath()
Classpath configured for the project.
|
org.sonar.api.batch.fs.InputFile |
findResourceByClassName(String className)
Retrieve a SonarQube resource by the class name.
|
String |
findSourceFileKeyByClassName(String className)
get source file key by class name.
|
void |
scanFile(JavaFileScannerContext context)
Method called after parsing and semantic analysis has been done on file.
|
void |
setSensorContext(org.sonar.api.batch.sensor.SensorContext sensorContext) |
public DefaultJavaResourceLocator(org.sonar.api.batch.fs.FileSystem fs,
JavaClasspath javaClasspath)
public void setSensorContext(org.sonar.api.batch.sensor.SensorContext sensorContext)
public org.sonar.api.batch.fs.InputFile findResourceByClassName(String className)
JavaResourceLocatorfindResourceByClassName in interface JavaResourceLocatorclassName - fully qualified name of the analyzed classpublic String findSourceFileKeyByClassName(String className)
JavaResourceLocatorfindSourceFileKeyByClassName in interface JavaResourceLocatorclassName - fully qualified name of the analyzed class.public Collection<File> classFilesToAnalyze()
JavaResourceLocatorclassFilesToAnalyze in interface JavaResourceLocatorpublic Collection<File> classpath()
JavaResourceLocatorclasspath in interface JavaResourceLocatorpublic void scanFile(JavaFileScannerContext context)
JavaFileScannerscanFile in interface JavaFileScannercontext - Context of analysis containing the parsed tree.Copyright © 2012–2017 SonarSource. All rights reserved.