Names are stored in a Name., 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.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | |
| public abstract static class | Name.
An abstraction for the hash table used to create unique |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public Name | |
| public Name | |
| public char | charAt(int index)
Implements java. Returns the |
| public int | |
| public boolean | contentEquals(CharSequence cs)
Implements javax. Compares this name to the specified |
| public final boolean | equals(Object obj)
Overrides java. Implements javax. Returns |
| public abstract void | getUtf8Bytes(byte[] buf, int off)
Write the Modified UTF-8 encoding of this name into the given buffer starting at the specified offset. |
| public abstract int | |
| public abstract int | hashCode()
Redeclares javax. Overrides java. Obeys the general contract of |
| public boolean | |
| public int | lastIndexOfAscii(char ch)
Returns last occurrence of the given ASCII character in this name, -1 if not found. |
| public int | |
| public <X> X | |
| protected abstract boolean | |
| public final int | |
| public boolean | |
| public Name | subName(int
starting character offset, inclusive start, int ending character offset, exclusive end)Returns the sub-name extending between two character positions. |
| public Name | subName(int
starting character offset off)Returns the suffix of this name starting at the given offset. |
| public CharSequence | subSequence(int start, int end)
Implements java. Returns a |
| public abstract String | toString()
Redeclares java. Overrides java. Returns a string containing the characters in this sequence in the same order as this sequence. |
| public byte[] |
| table | back to summary |
|---|---|
| public final Name. The | |
| Name | back to summary |
|---|---|
| protected Name(Name. Constructor. | |
| append | back to summary |
|---|---|
| public Name append(Name name) Return the concatenation of this name and the given name. The given name must come from the same table as this one. | |
| append | back to summary |
|---|---|
| public Name append(char c, Name name) Return the concatenation of this name, the given ASCII character, and the given name. The given name must come from the same table as this one. | |
| charAt | back to summary |
|---|---|
| public char charAt(int index) Implements java. Doc from java. Returns the If the
The implementation in
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(Name name) Implements java. Order names lexicographically.
The ordering defined by this method must match the ordering
defined by the corresponding
| |
| contentEquals | back to summary |
|---|---|
| public boolean contentEquals(CharSequence cs) Implements javax. Doc from javax. Compares this name to the specified
The implementation in
| |
| equals | back to summary |
|---|---|
| public final boolean equals(Object obj) Overrides java. Implements javax. Doc from javax. Returns Note that the identity of a
| |
| getUtf8Bytes | back to summary |
|---|---|
| public abstract void getUtf8Bytes(byte[] buf, int off) Write the Modified UTF-8 encoding of this name into the given buffer starting at the specified offset. | |
| getUtf8Length | back to summary |
|---|---|
| public abstract int getUtf8Length() Get the length of the Modified UTF-8 encoding of this name. | |
| hashCode | back to summary |
|---|---|
| public abstract int hashCode() Redeclares javax. Overrides java. Doc from javax. Obeys the general contract of
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Overrides default java. Determine if this is the empty name. | |
| lastIndexOfAscii | back to summary |
|---|---|
| public int lastIndexOfAscii(char ch) Returns last occurrence of the given ASCII character in this name, -1 if not found.
The implementation in | |
| length | back to summary |
|---|---|
| public int length() Implements java. Doc from java. Returns the length of this character sequence. The length is the number
of 16-bit
| |
| map | back to summary |
|---|---|
| public <X> X map(Name. Decode this name's Modified UTF-8 encoding into something. | |
| nameEquals | back to summary |
|---|---|
| protected abstract boolean nameEquals(Name that) Subclass check for equality.
This method can assume that the given instance is the same type
as this instance and is associated to the same | |
| poolTag | back to summary |
|---|---|
| public final int poolTag() Implements com. Doc from com. The constant pool entry tag.
| |
| startsWith | back to summary |
|---|---|
| public boolean startsWith(Name prefix) Determine whether this name has the given Name as a prefix.
The implementation in | |
| subName | back to summary |
|---|---|
| public Name subName(int start, int end) Returns the sub-name extending between two character positions.
The implementation in
| |
| subName | back to summary |
|---|---|
| public Name subName(int off) Returns the suffix of this name starting at the given offset.
The implementation in
| |
| subSequence | back to summary |
|---|---|
| public CharSequence subSequence(int start, int end) Implements java. Doc from java. Returns a
The implementation in
| |
| toString | back to summary |
|---|---|
| public abstract String toString() Redeclares java. Overrides java. Doc from java. Returns a string containing the characters in this sequence in the same order as this sequence. The length of the string will be the length of this sequence.
| |
| toUtf | back to summary |
|---|---|
| public byte[] toUtf() Return the Modified UTF-8 encoding of this name.
The implementation in | |
Name to something.
| Modifier and Type | Method and Description |
|---|---|
| public X |
| map | back to summary |
|---|---|
| public X map(byte[] bytes, int offset, int len) | |
Name instances.
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | |
| public abstract Name | |
| public Name | |
| public Name | |
| public abstract Name | Returns: the correspondingNamenumber of bytes len, Convert.Get the unique |
| names | back to summary |
|---|---|
| public final Names names Standard name table. | |
| Table | back to summary |
|---|---|
| protected Table(Names names) | |
| dispose | back to summary |
|---|---|
| public abstract void dispose() Release any resources used by this table. | |
| fromChars | back to summary |
|---|---|
| public abstract Name fromChars(char[] cs, int off, int len) Get the unique | |
| fromString | back to summary |
|---|---|
| public Name fromString(String s) Get the unique
The implementation in
| |
| fromUtf | back to summary |
|---|---|
| public Name fromUtf(byte[] cs) throws InvalidUtfException Get the unique
The implementation in
| |
| fromUtf | back to summary |
|---|---|
| public abstract Name fromUtf(byte[] cs, int start, int len, Convert. Get the unique
| |