public abstract class AbstractSourceImporter extends Object implements Sensor
FLAG_SQUID_ANALYSIS
Constructor and Description |
---|
AbstractSourceImporter(Language language) |
Modifier and Type | Method and Description |
---|---|
protected void |
analyse(ProjectFileSystem fileSystem,
SensorContext context) |
void |
analyse(Project project,
SensorContext context)
The method that is going to be run when the sensor is called
|
protected Resource |
createResource(File file,
List<File> sourceDirs,
boolean unitTest) |
Language |
getLanguage() |
protected boolean |
isEnabled(Project project) |
protected void |
onFinished() |
protected void |
parseDirs(SensorContext context,
List<File> files,
List<File> sourceDirs,
boolean unitTest,
Charset sourcesEncoding) |
boolean |
shouldExecuteOnProject(Project project)
Generally this method should not be overridden in subclasses, but if it is, then it should be executed anyway (see SONAR-3419).
|
public AbstractSourceImporter(Language language)
public boolean shouldExecuteOnProject(Project project)
shouldExecuteOnProject
in interface CheckProject
public void analyse(Project project, SensorContext context)
protected void onFinished()
protected void analyse(ProjectFileSystem fileSystem, SensorContext context)
protected void parseDirs(SensorContext context, List<File> files, List<File> sourceDirs, boolean unitTest, Charset sourcesEncoding)
protected Resource createResource(File file, List<File> sourceDirs, boolean unitTest)
public Language getLanguage()
Copyright © 2009-2012 SonarSource. All Rights Reserved.