CONSTANT_String_info structure, or a string constant, in the
constant pool of a class file.
The use of a StringEntry is represented by a String.
Conversions are through ConstantPoolBuilder#stringEntry(String) and
stringValue().
A string entry is composite:
StringEntry(Utf8Entry utf8)
CONSTANT_String_info Structure
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: whether this entry describes the same string as the provided stringthe string to compare to value)Returns whether this entry describes the same string as the provided string. |
| public String | |
| public Utf8Entry | Returns: the UTF constant pool entry describing the string contentsReturns the UTF constant pool entry describing the string contents. |
| equalsString | back to summary |
|---|---|
| public boolean equalsString(String value) Returns whether this entry describes the same string as the provided string.
| |
| stringValue | back to summary |
|---|---|
| public String stringValue() Returns the string value for this entry. API Note A
| |
| utf8 | back to summary |
|---|---|
| public Utf8Entry utf8() Returns the UTF constant pool entry describing the string contents.
| |