com.sun.tools.javac.util
Class Name.Table

java.lang.Object
  extended by com.sun.tools.javac.util.Name.Table
Direct Known Subclasses:
SharedNameTable, UnsharedNameTable
Enclosing class:
Name

public abstract static class Name.Table
extends java.lang.Object

An abstraction for the hash table used to create unique Name instances.


Field Summary
 Names names
          Standard name table.
 
Constructor Summary
Name.Table(Names names)
           
 
Method Summary
abstract  void dispose()
          Release any resources used by this table.
protected static boolean equals(byte[] bytes1, int offset1, byte[] bytes2, int offset2, int length)
          Compare two subarrays
abstract  Name fromChars(char[] cs, int start, int len)
          Get the name from the characters in cs[start..start+len-1].
 Name fromString(java.lang.String s)
          Get the name for the characters in string s.
 Name fromUtf(byte[] cs)
          Get the name for the bytes in array cs.
abstract  Name fromUtf(byte[] cs, int start, int len)
          get the name for the bytes in cs[start..start+len-1].
protected static int hashValue(byte[] bytes, int offset, int length)
          The hashcode of a name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

names

public final Names names
Standard name table.

Constructor Detail

Name.Table

Name.Table(Names names)
Method Detail

fromChars

public abstract Name fromChars(char[] cs,
                               int start,
                               int len)
Get the name from the characters in cs[start..start+len-1].


fromString

public Name fromString(java.lang.String s)
Get the name for the characters in string s.


fromUtf

public Name fromUtf(byte[] cs)
Get the name for the bytes in array cs. Assume that bytes are in utf8 format.


fromUtf

public abstract Name fromUtf(byte[] cs,
                             int start,
                             int len)
get the name for the bytes in cs[start..start+len-1]. Assume that bytes are in utf8 format.


dispose

public abstract void dispose()
Release any resources used by this table.


hashValue

protected static int hashValue(byte[] bytes,
                               int offset,
                               int length)
The hashcode of a name.


equals

protected static boolean equals(byte[] bytes1,
                                int offset1,
                                byte[] bytes2,
                                int offset2,
                                int length)
Compare two subarrays