org.sonar.api.batch
Class AbstractSourceImporter

java.lang.Object
  extended by org.sonar.api.batch.AbstractSourceImporter
All Implemented Interfaces:
CheckProject, Sensor, BatchComponent, BatchExtension, Extension

Deprecated. since 4.2 Component indexing and source import are done by core and this extension is not used.

@Deprecated
public abstract class AbstractSourceImporter
extends Object
implements Sensor

Since:
1.10

Field Summary
 
Fields inherited from interface org.sonar.api.batch.Sensor
FLAG_SQUID_ANALYSIS
 
Constructor Summary
AbstractSourceImporter(Language language)
          Deprecated.  
 
Method Summary
protected  void analyse(ProjectFileSystem fileSystem, SensorContext context)
          Deprecated.  
 void analyse(Project project, SensorContext context)
          Deprecated. The method that is going to be run when the sensor is called
protected  Resource createResource(File file, List<File> sourceDirs, boolean unitTest)
          Deprecated.  
 Language getLanguage()
          Deprecated.  
protected  boolean isEnabled(Project project)
          Deprecated.  
protected  void onFinished()
          Deprecated.  
protected  void parseDirs(SensorContext context, List<File> files, List<File> sourceDirs, boolean unitTest, Charset sourcesEncoding)
          Deprecated.  
 boolean shouldExecuteOnProject(Project project)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSourceImporter

public AbstractSourceImporter(Language language)
Deprecated. 
Method Detail

shouldExecuteOnProject

public boolean shouldExecuteOnProject(Project project)
Deprecated. 
Specified by:
shouldExecuteOnProject in interface CheckProject

analyse

public void analyse(Project project,
                    SensorContext context)
Deprecated. 
Description copied from interface: Sensor
The method that is going to be run when the sensor is called

Specified by:
analyse in interface Sensor
Parameters:
project - the module the sensor runs on
context - the context

onFinished

protected void onFinished()
Deprecated. 

analyse

protected void analyse(ProjectFileSystem fileSystem,
                       SensorContext context)
Deprecated. 

parseDirs

protected void parseDirs(SensorContext context,
                         List<File> files,
                         List<File> sourceDirs,
                         boolean unitTest,
                         Charset sourcesEncoding)
Deprecated. 

createResource

protected Resource createResource(File file,
                                  List<File> sourceDirs,
                                  boolean unitTest)
Deprecated. 

isEnabled

protected boolean isEnabled(Project project)
Deprecated. 

getLanguage

public Language getLanguage()
Deprecated. 


Copyright © 2009–2015 SonarSource. All rights reserved.