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 com. Adds the specified symbol to the symbol table and returns a reference to the unique symbol. |
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 com. Adds the specified symbol to the symbol table and returns a reference to the unique symbol. |
public boolean | containsSymbol(String
The symbol to look for. symbol)Overrides com. Returns true if the symbol table already contains the specified symbol. |
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 com. Returns true if the symbol table already contains the specified symbol. |
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 com. 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 com. 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 com. 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 com. Returns true if the symbol table already contains the specified symbol.
|