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

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

static class UnsharedNameTable.NameImpl
extends Name


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.tools.javac.util.Name
Name.Table
 
Field Summary
(package private)  byte[] bytes
           
(package private)  int index
           
 
Fields inherited from class com.sun.tools.javac.util.Name
table
 
Constructor Summary
UnsharedNameTable.NameImpl(UnsharedNameTable table, byte[] bytes, int index)
           
 
Method Summary
 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()
           
 
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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.lang.model.element.Name
equals, hashCode
 

Field Detail

bytes

final byte[] bytes

index

final int index
Constructor Detail

UnsharedNameTable.NameImpl

UnsharedNameTable.NameImpl(UnsharedNameTable table,
                           byte[] bytes,
                           int index)
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