| Modifier and Type | Field and Description |
|---|---|
| protected SymbolTable | fSymbolTable
Main symbol table. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| 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 boolean | containsSymbol(String
The symbol to look for. symbol)Overrides org. |
| public boolean | containsSymbol(char[]
The buffer containing the symbol to look for. buffer, int The offset into the buffer. offset, int The length of the symbol in the buffer. length)Overrides org. |
| fSymbolTable | back to summary |
|---|---|
| protected SymbolTable fSymbolTable Main symbol table. | |
| SynchronizedSymbolTable | back to summary |
|---|---|
| public SynchronizedSymbolTable(SymbolTable symbolTable) Constructs a synchronized symbol table. | |
| SynchronizedSymbolTable | back to summary |
|---|---|
| public SynchronizedSymbolTable() | |
| SynchronizedSymbolTable | back to summary |
|---|---|
| public SynchronizedSymbolTable(int size) | |
| 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.
| |
| containsSymbol | back to summary |
|---|---|
| public boolean containsSymbol(String symbol) Overrides org. Returns true if the symbol table already contains the specified symbol.
| |
| containsSymbol | back to summary |
|---|---|
| public boolean containsSymbol(char[] buffer, int offset, int length) Overrides org. Returns true if the symbol table already contains the specified symbol.
| |