JavaCheck
, JavaFileScanner
DefaultJavaResourceLocator
@Beta @ScannerSide @SonarLintSide public interface JavaResourceLocator extends JavaFileScanner
Modifier and Type | Method | 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) |
Deprecated.
since 4.1 : will be dropped with no replacement.
|
scanFile
@CheckForNull org.sonar.api.batch.fs.InputFile findResourceByClassName(String className)
className
- fully qualified name of the analyzed class@Deprecated String findSourceFileKeyByClassName(String className)
className
- fully qualified name of the analyzed class.Collection<File> classFilesToAnalyze()
Collection<File> classpath()
Copyright © 2012–2018 SonarSource. All rights reserved.