|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Beta public interface SymbolTableBuilder
Experimental, do not use.
Use this builder to create symbol references. For now only references in the same file are supported.
| Method Summary | |
|---|---|
void |
done()
Call this method only once when your are done with defining symbols of the file. |
void |
newReference(Symbol symbol,
int fromOffset)
Records that a Symbol is referenced at another location in the same file. |
Symbol |
newSymbol(int fromOffset,
int toOffset)
Create a new symbol. |
| Method Detail |
|---|
Symbol newSymbol(int fromOffset,
int toOffset)
fromOffset - Starting offset in a file for the symbol declaration. File starts at offset '0'.toOffset - Ending offset of symbol declaration.
newReference(Symbol, int)
void newReference(Symbol symbol,
int fromOffset)
Symbol is referenced at another location in the same file.
symbol - Symbol previously created with newSymbol(int, int)fromOffset - Starting offset of the place symbol is referenced. No need for end offset here since we assume it is same length.void done()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||