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 int
asCode
private int
asString
private java.lang.String
value
-
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) int
classFileSize()
We assume here that the String is ASCII, thus this might return a size smaller than actual size.(package private) java.lang.Object
getKey()
Return the key used to key this object in a hashtable(package private) void
put(ClassFormatOutput out)
(package private) void
setAlternative(int index)
(package private) int
setAsCode()
(package private) int
setAsString()
java.lang.String
toString()
-
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:ConstantPoolEntry
Return the key used to key this object in a hashtable- Overrides:
getKey
in classConstantPoolEntry
-
classFileSize
int classFileSize()
We assume here that the String is ASCII, thus this might return a size smaller than actual size.- Specified by:
classFileSize
in classConstantPoolEntry
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
setAsCode
int setAsCode()
-
setAsString
int setAsString()
-
setAlternative
void setAlternative(int index)
-
put
void put(ClassFormatOutput out) throws java.io.IOException
- Overrides:
put
in classConstantPoolEntry
- Throws:
java.io.IOException
-
-