Home » openjdk-7 » com.sun.tools » javac » util » [javadoc | source]
abstract public class: Name [javadoc | source]

All Implemented Interfaces:

Direct Known Subclasses:
    NameImpl, NameImpl

An abstraction for internal compiler strings. They are stored in Utf8 format. Names are stored in a Name.Table, and are unique within that table.

This is NOT part of any supported API. 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:
abstract public static class  Name.Table  An abstraction for the hash table used to create unique Name instances. 
Field Summary
public final  Table table     
 protected Name(Table table) 
Method from com.sun.tools.javac.util.Name Summary:
append,   append,   charAt,   compareTo,   contentEquals,   getByteArray,   getByteAt,   getByteLength,   getByteOffset,   getBytes,   getIndex,   isEmpty,   lastIndexOf,   length,   startsWith,   subName,   subSequence,   toString,   toUtf
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.sun.tools.javac.util.Name Detail:
 public Name append(Name n) 
    Return the concatenation of this name and name `n'.
 public Name append(char c,
    Name n) 
    Return the concatenation of this name, the given ASCII character, and name `n'.
 public char charAt(int index) 
 public int compareTo(Name other) 
    An arbitrary but consistent complete order among all Names.
 public boolean contentEquals(CharSequence cs) 
 abstract public byte[] getByteArray()
    Get the underlying byte array for this name. The contents of the array must not be modified.
 abstract public byte getByteAt(int i)
    Returns i'th byte of this name.
 abstract public int getByteLength()
    Get the length (in bytes) of this name.
 abstract public int getByteOffset()
    Get the start offset of this name within its byte array.
 public  void getBytes(byte[] cs,
    int start) 
    Copy all bytes of this name to buffer cs, starting at start.
 abstract public int getIndex()
 public boolean isEmpty() 
    Return true if this is the empty name.
 public int lastIndexOf(byte b) 
    Returns last occurrence of byte b in this name, -1 if not found.
 public int length() 
 public boolean startsWith(Name prefix) 
    Does this name start with prefix?
 public Name subName(int start,
    int end) 
    Returns the sub-name starting at position start, up to and excluding position end.
 public CharSequence subSequence(int start,
    int end) 
 public String toString() 
    Return the string representation of this name.
 public byte[] toUtf() 
    Return the Utf8 representation of this name.