public class SymbolTable extends Object
构造器和说明 |
---|
SymbolTable(int tableSize) |
限定符和类型 | 方法和说明 |
---|---|
String |
addSymbol(char[] buffer,
int offset,
int len) |
String |
addSymbol(char[] buffer,
int offset,
int len,
int hash)
Adds the specified symbol to the symbol table and returns a reference to the unique symbol.
|
String |
addSymbol(String buffer,
int offset,
int len,
int hash) |
static int |
hash(char[] buffer,
int offset,
int len) |
public String addSymbol(char[] buffer, int offset, int len)
public String addSymbol(char[] buffer, int offset, int len, int hash)
buffer
- The buffer containing the new symbol.offset
- The offset into the buffer of the new symbol.len
- The length of the new symbol in the buffer.public static int hash(char[] buffer, int offset, int len)
Copyright © 2012–2016 Alibaba Group. All rights reserved.