com.sun.tools.javac.util
Class SharedNameTable.NameImpl

java.lang.Object
  extended by com.sun.tools.javac.util.Name
      extended by com.sun.tools.javac.util.SharedNameTable.NameImpl
All Implemented Interfaces:
java.lang.CharSequence, Name
Enclosing class:
SharedNameTable

static class SharedNameTable.NameImpl
extends Name


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.tools.javac.util.Name
Name.Table
 
Field Summary
(package private)  int index
          The index where the bytes of this name are stored in the global name buffer `byte'.
(package private)  int length
          The number of bytes in this name.
(package private)  SharedNameTable.NameImpl next
          The next name occupying the same hash bucket.
 
Fields inherited from class com.sun.tools.javac.util.Name
table
 
Constructor Summary
SharedNameTable.NameImpl(SharedNameTable table)
           
 
Method Summary
 boolean equals(java.lang.Object other)
          Is this name equal to other?
 byte[] getByteArray()
          Get the underlying byte array for this name.
 byte getByteAt(int i)
          Returns i'th byte of this name.
 int getByteLength()
          Get the length (in bytes) of this name.
 int getByteOffset()
          Get the start offset of this name within its byte array.
 int getIndex()
           
 int hashCode()
          Return the hash value of this name.
 
Methods inherited from class com.sun.tools.javac.util.Name
append, append, charAt, compareTo, contentEquals, getBytes, isEmpty, lastIndexOf, length, startsWith, subName, subSequence, toString, toUtf
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

next

SharedNameTable.NameImpl next
The next name occupying the same hash bucket.


index

int index
The index where the bytes of this name are stored in the global name buffer `byte'.


length

int length
The number of bytes in this name.

Constructor Detail

SharedNameTable.NameImpl

SharedNameTable.NameImpl(SharedNameTable table)
Method Detail

getIndex

public int getIndex()
Specified by:
getIndex in class Name

getByteLength

public int getByteLength()
Description copied from class: Name
Get the length (in bytes) of this name.

Specified by:
getByteLength in class Name

getByteAt

public byte getByteAt(int i)
Description copied from class: Name
Returns i'th byte of this name.

Specified by:
getByteAt in class Name

getByteArray

public byte[] getByteArray()
Description copied from class: Name
Get the underlying byte array for this name. The contents of the array must not be modified.

Specified by:
getByteArray in class Name

getByteOffset

public int getByteOffset()
Description copied from class: Name
Get the start offset of this name within its byte array.

Specified by:
getByteOffset in class Name

hashCode

public int hashCode()
Return the hash value of this name.

Specified by:
hashCode in interface Name
Overrides:
hashCode in class java.lang.Object
See Also:
Name.equals(java.lang.Object)

equals

public boolean equals(java.lang.Object other)
Is this name equal to other?

Specified by:
equals in interface Name
Overrides:
equals in class java.lang.Object
Parameters:
other - the object to be compared with this element
Returns:
true if the specified object represents the same name as this
See Also:
Element.equals(java.lang.Object)