org.apache.xerces.util
public final class ShadowedSymbolTable extends SymbolTable
Version: $Id: ShadowedSymbolTable.java,v 1.3 2004/02/24 23:15:53 mrglavas Exp $
Field Summary | |
---|---|
protected SymbolTable | fSymbolTable Main symbol table. |
Constructor Summary | |
---|---|
ShadowedSymbolTable(SymbolTable symbolTable) Constructs a shadow of the specified symbol table. |
Method Summary | |
---|---|
String | addSymbol(String symbol)
Adds the specified symbol to the symbol table and returns a
reference to the unique symbol. |
String | addSymbol(char[] buffer, int offset, int length)
Adds the specified symbol to the symbol table and returns a
reference to the unique symbol. |
int | hash(String symbol)
Returns a hashcode value for the specified symbol. |
int | hash(char[] buffer, int offset, int length)
Returns a hashcode value for the specified symbol information.
|
Parameters: symbol The new symbol.
Parameters: buffer The buffer containing the new symbol. offset The offset into the buffer of the new symbol. length The length of the new symbol in the buffer.
hash(char[],int,int)
method when called
with the character array that comprises the symbol string.
Parameters: symbol The symbol to hash.
hash(String)
method when called
with the string object created from the symbol information.
Parameters: buffer The character buffer containing the symbol. offset The offset into the character buffer of the start of the symbol. length The length of the symbol.