public final class ShadowedSymbolTable extends SymbolTable
SymbolTable.Entry| Modifier and Type | Field and Description | 
|---|---|
| protected SymbolTable | fSymbolTableMain symbol table. | 
fBuckets, fCollisionThreshold, fCount, fHashMultipliers, fLoadFactor, fTableSize, fThreshold, MAX_HASH_COLLISIONS, MULTIPLIERS_MASK, MULTIPLIERS_SIZE, TABLE_SIZE| Constructor and Description | 
|---|
| ShadowedSymbolTable(SymbolTable symbolTable)Constructs a shadow of the specified symbol table. | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.String | addSymbol(char[] buffer,
         int offset,
         int length)Adds the specified symbol to the symbol table and returns a
 reference to the unique symbol. | 
| java.lang.String | addSymbol(java.lang.String symbol)Adds the specified symbol to the symbol table and returns a
 reference to the unique symbol. | 
| int | hash(char[] buffer,
    int offset,
    int length)Returns a hashcode value for the specified symbol information. | 
| int | hash(java.lang.String symbol)Returns a hashcode value for the specified symbol. | 
containsSymbol, containsSymbol, rebalance, rehashprotected SymbolTable fSymbolTable
public ShadowedSymbolTable(SymbolTable symbolTable)
public java.lang.String addSymbol(java.lang.String symbol)
addSymbol in class SymbolTablesymbol - The new symbol.public java.lang.String addSymbol(char[] buffer,
                         int offset,
                         int length)
addSymbol in class SymbolTablebuffer - 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.public int hash(java.lang.String symbol)
hash(char[],int,int) method when called
 with the character array that comprises the symbol string.hash in class SymbolTablesymbol - The symbol to hash.public int hash(char[] buffer,
       int offset,
       int length)
hash(String) method when called
 with the string object created from the symbol information.hash in class SymbolTablebuffer - 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.Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.