Class DefaultSymbolTable

java.lang.Object
org.sonar.api.batch.sensor.internal.DefaultStorable
org.sonar.api.batch.sensor.symbol.internal.DefaultSymbolTable
All Implemented Interfaces:
org.sonar.api.batch.sensor.symbol.NewSymbolTable

public class DefaultSymbolTable extends DefaultStorable implements org.sonar.api.batch.sensor.symbol.NewSymbolTable
  • Field Summary

    Fields inherited from class org.sonar.api.batch.sensor.internal.DefaultStorable

    storage
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultSymbolTable(org.sonar.api.batch.sensor.internal.SensorStorage storage)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    Map<org.sonar.api.batch.fs.TextRange,Set<org.sonar.api.batch.fs.TextRange>>
     
    org.sonar.api.batch.fs.InputFile
     
    org.sonar.api.batch.sensor.symbol.NewSymbol
    newSymbol(int startLine, int startLineOffset, int endLine, int endLineOffset)
     
    org.sonar.api.batch.sensor.symbol.NewSymbol
    newSymbol(org.sonar.api.batch.fs.TextRange range)
     
    onFile(org.sonar.api.batch.fs.InputFile inputFile)
     

    Methods inherited from class org.sonar.api.batch.sensor.internal.DefaultStorable

    save, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.sonar.api.batch.sensor.symbol.NewSymbolTable

    save
  • Constructor Details

    • DefaultSymbolTable

      public DefaultSymbolTable(org.sonar.api.batch.sensor.internal.SensorStorage storage)
  • Method Details

    • getReferencesBySymbol

      public Map<org.sonar.api.batch.fs.TextRange,Set<org.sonar.api.batch.fs.TextRange>> getReferencesBySymbol()
    • onFile

      public DefaultSymbolTable onFile(org.sonar.api.batch.fs.InputFile inputFile)
      Specified by:
      onFile in interface org.sonar.api.batch.sensor.symbol.NewSymbolTable
    • inputFile

      public org.sonar.api.batch.fs.InputFile inputFile()
    • newSymbol

      public org.sonar.api.batch.sensor.symbol.NewSymbol newSymbol(int startLine, int startLineOffset, int endLine, int endLineOffset)
      Specified by:
      newSymbol in interface org.sonar.api.batch.sensor.symbol.NewSymbolTable
    • newSymbol

      public org.sonar.api.batch.sensor.symbol.NewSymbol newSymbol(org.sonar.api.batch.fs.TextRange range)
      Specified by:
      newSymbol in interface org.sonar.api.batch.sensor.symbol.NewSymbolTable
    • doSave

      protected void doSave()
      Specified by:
      doSave in class DefaultStorable