| Modifier and Type | Field and Description |
|---|---|
| protected SymbolTable | fSymbolTable
Main symbol table. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | addSymbol(String
The new symbol. symbol)Overrides org. |
| public String | addSymbol(char[]
The buffer containing the new symbol. buffer, int The offset into the buffer of the new symbol. offset, int The length of the new symbol in the buffer. length)Overrides org. |
| public int | hash(String
The symbol to hash. symbol)Overrides org. |
| public int | hash(char[]
The character buffer containing the symbol. buffer, int The offset into the character buffer of the start
of the symbol. offset, int The length of the symbol. length)Overrides org. |
| fSymbolTable | back to summary |
|---|---|
| protected SymbolTable fSymbolTable Main symbol table. | |
| ShadowedSymbolTable | back to summary |
|---|---|
| public ShadowedSymbolTable(SymbolTable symbolTable) Constructs a shadow of the specified symbol table. | |
| addSymbol | back to summary |
|---|---|
| public String addSymbol(String symbol) Overrides org. Adds the specified symbol to the symbol table and returns a reference to the unique symbol. If the symbol already exists, the previous symbol reference is returned instead, in order guarantee that symbol references remain unique.
| |
| addSymbol | back to summary |
|---|---|
| public String addSymbol(char[] buffer, int offset, int length) Overrides org. Adds the specified symbol to the symbol table and returns a reference to the unique symbol. If the symbol already exists, the previous symbol reference is returned instead, in order guarantee that symbol references remain unique.
| |
| hash | back to summary |
|---|---|
| public int hash(String symbol) Overrides org. Returns a hashcode value for the specified symbol. The value
returned by this method must be identical to the value returned
by the
| |
| hash | back to summary |
|---|---|
| public int hash(char[] buffer, int offset, int length) Overrides org. Returns a hashcode value for the specified symbol information.
The value returned by this method must be identical to the value
returned by the
| |