Class DefaultSymbolTable

  • All Implemented Interfaces:
    org.sonar.api.batch.sensor.symbol.NewSymbolTable

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void doSave()  
      java.util.Map<org.sonar.api.batch.fs.TextRange,​java.util.Set<org.sonar.api.batch.fs.TextRange>> getReferencesBySymbol()  
      org.sonar.api.batch.fs.InputFile inputFile()  
      org.sonar.api.batch.sensor.symbol.NewSymbol newSymbol​(int startOffset, int endOffset)  
      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)  
      DefaultSymbolTable onFile​(org.sonar.api.batch.fs.InputFile inputFile)  
      • 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 Detail

      • DefaultSymbolTable

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

      • getReferencesBySymbol

        public java.util.Map<org.sonar.api.batch.fs.TextRange,​java.util.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​(int startOffset,
                                                                     int endOffset)
        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