|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.tools.javac.util.Name.Table
com.sun.tools.javac.util.UnsharedNameTable
public class UnsharedNameTable
Implementation of Name.Table that stores names in individual arrays using weak references. It is recommended for use when a single shared byte array is unsuitable.
This is NOT part of any API supported by Sun Microsystems. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
| Nested Class Summary | |
|---|---|
(package private) static class |
UnsharedNameTable.HashEntry
|
(package private) static class |
UnsharedNameTable.NameImpl
|
| Field Summary | |
|---|---|
private UnsharedNameTable.HashEntry[] |
hashes
The hash table for names. |
private int |
hashMask
The mask to be used for hashing |
int |
index
Index counter for names in this table. |
| Fields inherited from class com.sun.tools.javac.util.Name.Table |
|---|
names |
| Constructor Summary | |
|---|---|
UnsharedNameTable(Names names)
|
|
UnsharedNameTable(Names names,
int hashSize)
Allocator |
|
| Method Summary | |
|---|---|
static Name.Table |
create(Names names)
|
void |
dispose()
Release any resources used by this table. |
Name |
fromChars(char[] cs,
int start,
int len)
Get the name from the characters in cs[start..start+len-1]. |
Name |
fromUtf(byte[] cs,
int start,
int len)
get the name for the bytes in cs[start..start+len-1]. |
| Methods inherited from class com.sun.tools.javac.util.Name.Table |
|---|
equals, fromString, fromUtf, hashValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private UnsharedNameTable.HashEntry[] hashes
private int hashMask
public int index
| Constructor Detail |
|---|
public UnsharedNameTable(Names names,
int hashSize)
names - The main name tablehashSize - the (constant) size to be used for the hash table
needs to be a power of two.public UnsharedNameTable(Names names)
| Method Detail |
|---|
public static Name.Table create(Names names)
public Name fromChars(char[] cs,
int start,
int len)
Name.Table
fromChars in class Name.Table
public Name fromUtf(byte[] cs,
int start,
int len)
Name.Table
fromUtf in class Name.Tablepublic void dispose()
Name.Table
dispose in class Name.Table
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||