public class SymbolTable extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
SymbolTable.Entry |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_TABLE_SIZE |
static int |
MAX_BUCKET_LENTH |
static int |
MAX_SIZE |
| Constructor and Description |
|---|
SymbolTable() |
SymbolTable(int tableSize) |
| Modifier and Type | Method and Description |
|---|---|
String |
addSymbol(char[] buffer,
int offset,
int len) |
String |
addSymbol(char[] buffer,
int offset,
int len,
int hash) |
String |
addSymbol(String buffer,
int offset,
int len,
int hash) |
static int |
hash(char[] buffer,
int offset,
int len) |
int |
size() |
public static final int DEFAULT_TABLE_SIZE
public static final int MAX_BUCKET_LENTH
public static final int MAX_SIZE
Copyright © 2016 jufeng. All rights reserved.