com.claritysys.jvm.classfile
Class CpUtf8
java.lang.Object
com.claritysys.jvm.classfile.CpEntry
com.claritysys.jvm.classfile.CpUtf8
- All Implemented Interfaces:
- java.lang.Cloneable
public final class CpUtf8
- extends CpEntry
Constant UTF8 constant-pool entry.
| Fields inherited from class com.claritysys.jvm.classfile.CpEntry |
TAG_CLASS, TAG_DOUBLE, TAG_FIELDREF, TAG_FLOAT, TAG_INTEGER, TAG_INTERFACE_METHODREF, TAG_LONG, TAG_METHODREF, TAG_NAME_AND_TYPE, TAG_STRING, TAG_UTF8 |
|
Constructor Summary |
CpUtf8(ConstantPool pool)
Create a new entry which will be read eventually from a stream. |
|
Method Summary |
void |
computeHash()
Signal the entry to recompute (and store) its hashcode. |
java.lang.String |
getString()
|
void |
setString(java.lang.String string)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
CpUtf8
public CpUtf8(ConstantPool pool)
- Create a new entry which will be read eventually from a stream.
getString
public java.lang.String getString()
setString
public void setString(java.lang.String string)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
computeHash
public void computeHash()
- Description copied from class:
CpEntry
- Signal the entry to recompute (and store) its hashcode.
The default does nothing.
- Overrides:
computeHash in class CpEntry
Copyright ? 2000-2003 Clarity Systems Group, LLC. All Rights Reserved.