Class ConstantPoolEntry
java.lang.Object
org.apache.derby.iapi.services.classfile.ConstantPoolEntry
- Direct Known Subclasses:
CONSTANT_Double_info
,CONSTANT_Float_info
,CONSTANT_Index_info
,CONSTANT_Integer_info
,CONSTANT_Long_info
,CONSTANT_Utf8_info
Constant Pool class - pages 92-99
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected int
protected int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) abstract int
Return an estimate of the size of the constant pool entry.(package private) boolean
(package private) int
getI1()
Get the first index in a index type pool entry.(package private) int
getI2()
Get the second index in a index type pool entry.(package private) int
getIndex()
(package private) Object
getKey()
Return the key used to key this object in a hashtable(package private) final int
getTag()
Return the tag or type of the entry.(package private) void
put
(ClassFormatOutput out) (package private) void
setIndex
(int index)
-
Field Details
-
tag
protected int tag -
doubleSlot
protected boolean doubleSlot -
index
protected int index
-
-
Constructor Details
-
ConstantPoolEntry
protected ConstantPoolEntry(int tag)
-
-
Method Details
-
getIndex
int getIndex() -
setIndex
void setIndex(int index) -
doubleSlot
boolean doubleSlot() -
getKey
Object getKey()Return the key used to key this object in a hashtable -
classFileSize
abstract int classFileSize()Return an estimate of the size of the constant pool entry. -
put
- Throws:
IOException
-
getTag
final int getTag()Return the tag or type of the entry. Will be equal to one of the constants above, e.g. CONSTANT_Class. -
getI1
int getI1()Get the first index in a index type pool entry. This call is valid when getTag() returns one of- CONSTANT_Class
- CONSTANT_Fieldref
- CONSTANT_Methodref
- CONSTANT_InterfaceMethodref
- CONSTANT_String
- CONSTANT_NameAndType
-
getI2
int getI2()Get the second index in a index type pool entry. This call is valid when getTag() returns one of- CONSTANT_Fieldref
- CONSTANT_Methodref
- CONSTANT_InterfaceMethodref
- CONSTANT_NameAndType
-