Class CONSTANT_Utf8_info
- java.lang.Object
-
- org.apache.derby.iapi.services.classfile.ConstantPoolEntry
-
- org.apache.derby.iapi.services.classfile.CONSTANT_Utf8_info
-
public final class CONSTANT_Utf8_info extends ConstantPoolEntry
Utf8- page 100 - Section 4.4.7
-
-
Field Summary
Fields Modifier and Type Field Description private intasCodeprivate intasStringprivate java.lang.Stringvalue-
Fields inherited from class org.apache.derby.iapi.services.classfile.ConstantPoolEntry
doubleSlot, index, tag
-
-
Constructor Summary
Constructors Constructor Description CONSTANT_Utf8_info(java.lang.String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) intclassFileSize()We assume here that the String is ASCII, thus this might return a size smaller than actual size.(package private) java.lang.ObjectgetKey()Return the key used to key this object in a hashtable(package private) voidput(ClassFormatOutput out)(package private) voidsetAlternative(int index)(package private) intsetAsCode()(package private) intsetAsString()java.lang.StringtoString()-
Methods inherited from class org.apache.derby.iapi.services.classfile.ConstantPoolEntry
doubleSlot, getI1, getI2, getIndex, getTag, setIndex
-
-
-
-
Method Detail
-
getKey
java.lang.Object getKey()
Description copied from class:ConstantPoolEntryReturn the key used to key this object in a hashtable- Overrides:
getKeyin classConstantPoolEntry
-
classFileSize
int classFileSize()
We assume here that the String is ASCII, thus this might return a size smaller than actual size.- Specified by:
classFileSizein classConstantPoolEntry
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
setAsCode
int setAsCode()
-
setAsString
int setAsString()
-
setAlternative
void setAlternative(int index)
-
put
void put(ClassFormatOutput out) throws java.io.IOException
- Overrides:
putin classConstantPoolEntry- Throws:
java.io.IOException
-
-