public class DefaultSymbolTable extends DefaultStorable implements NewSymbolTable
storage| Constructor and Description |
|---|
DefaultSymbolTable(SensorStorage storage) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doSave() |
Map<TextRange,Set<TextRange>> |
getReferencesBySymbol() |
InputFile |
inputFile() |
NewSymbol |
newSymbol(int startOffset,
int endOffset)
Register a new symbol declaration.
|
NewSymbol |
newSymbol(int startLine,
int startLineOffset,
int endLine,
int endLineOffset)
Shortcut to avoid calling
InputFile.newRange(int, int, int, int) |
NewSymbol |
newSymbol(TextRange range)
Register a new symbol declaration.
|
DefaultSymbolTable |
onFile(InputFile inputFile)
The file the symbol table belongs to.
|
save, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsavepublic DefaultSymbolTable(SensorStorage storage)
public Map<TextRange,Set<TextRange>> getReferencesBySymbol()
public DefaultSymbolTable onFile(InputFile inputFile)
NewSymbolTableonFile in interface NewSymbolTablepublic NewSymbol newSymbol(int startLine, int startLineOffset, int endLine, int endLineOffset)
NewSymbolTableInputFile.newRange(int, int, int, int)newSymbol in interface NewSymbolTablepublic NewSymbol newSymbol(int startOffset, int endOffset)
NewSymbolTablenewSymbol in interface NewSymbolTablestartOffset - Starting position in file for the declaration of this symbol. Beginning of a file starts with offset '0'.endOffset - End position in file for this symbol declaration.public NewSymbol newSymbol(TextRange range)
NewSymbolTablenewSymbol in interface NewSymbolTablerange - Range of text for the symbol declaration. See for example InputFile.newRange(int, int, int, int).protected void doSave()
doSave in class DefaultStorableCopyright © 2009–2017 SonarSource. All rights reserved.