Class Scanner

java.lang.Object
org.sonar.plugins.python.Scanner
Direct Known Subclasses:
PythonScanner

public abstract class Scanner extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.sonar.api.batch.sensor.SensorContext
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Scanner(org.sonar.api.batch.sensor.SensorContext context)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canBeScannedWithoutParsing(org.sonar.api.batch.fs.InputFile inputFile)
     
    protected void
     
    void
    execute(List<org.sonar.api.batch.fs.InputFile> files, org.sonar.api.batch.sensor.SensorContext context)
     
    protected abstract String
     
    protected abstract void
    processException(Exception e, org.sonar.api.batch.fs.InputFile file)
     
    protected void
    reportStatistics(int numSkippedFiles, int numTotalFiles)
     
    protected abstract void
    scanFile(org.sonar.api.batch.fs.InputFile file)
     
    protected boolean
    scanFileWithoutParsing(org.sonar.api.batch.fs.InputFile file)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • context

      protected final org.sonar.api.batch.sensor.SensorContext context
  • Constructor Details

    • Scanner

      protected Scanner(org.sonar.api.batch.sensor.SensorContext context)
  • Method Details

    • execute

      public void execute(List<org.sonar.api.batch.fs.InputFile> files, org.sonar.api.batch.sensor.SensorContext context)
    • name

      protected abstract String name()
    • scanFile

      protected abstract void scanFile(org.sonar.api.batch.fs.InputFile file) throws IOException
      Throws:
      IOException
    • scanFileWithoutParsing

      protected boolean scanFileWithoutParsing(org.sonar.api.batch.fs.InputFile file) throws IOException
      Throws:
      IOException
    • endOfAnalysis

      protected void endOfAnalysis()
    • processException

      protected abstract void processException(Exception e, org.sonar.api.batch.fs.InputFile file)
    • reportStatistics

      protected void reportStatistics(int numSkippedFiles, int numTotalFiles)
    • canBeScannedWithoutParsing

      public boolean canBeScannedWithoutParsing(org.sonar.api.batch.fs.InputFile inputFile)