Class CONSTANT_Index_info
java.lang.Object
org.apache.derby.iapi.services.classfile.ConstantPoolEntry
org.apache.derby.iapi.services.classfile.CONSTANT_Index_info
A generic constant pool entry for entries that simply hold indexes
into other entries.
Ref Constant Pool Entry - page 94 - Section 4.4.2 - Two indexes
NameAndType Constant Pool Entry - page 99 - Section 4.4.6 - Two indexes
String Constant Pool Entry - page 96 - Section 4.4.3 - One index
Class Reference Constant Pool Entry - page 93 - Section 4.4.1 - One index
Ref Constant Pool Entry - page 94 - Section 4.4.2 - Two indexes
NameAndType Constant Pool Entry - page 99 - Section 4.4.6 - Two indexes
String Constant Pool Entry - page 96 - Section 4.4.3 - One index
Class Reference Constant Pool Entry - page 93 - Section 4.4.1 - One index
-
Field Summary
FieldsFields inherited from class ConstantPoolEntry
doubleSlot, index, tag -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) intReturn an estimate of the size of the constant pool entry.booleanintgetI1()Get the first index in a index type pool entry.intgetI2()Get the second index in a index type pool entry.inthashCode()(package private) voidput(ClassFormatOutput out) (package private) voidset(int tag, int i1, int i2) Used when searchingMethods inherited from class ConstantPoolEntry
doubleSlot, getIndex, getKey, getTag, setIndex
-
Field Details
-
i1
private int i1 -
i2
private int i2
-
-
Constructor Details
-
CONSTANT_Index_info
CONSTANT_Index_info(int tag, int i1, int i2)
-
-
Method Details
-
hashCode
-
equals
-
set
void set(int tag, int i1, int i2) Used when searching -
classFileSize
int classFileSize()Description copied from class:ConstantPoolEntryReturn an estimate of the size of the constant pool entry.- Specified by:
classFileSizein classConstantPoolEntry
-
put
- Overrides:
putin classConstantPoolEntry- Throws:
IOException
-
getI1
public int getI1()Description copied from class:ConstantPoolEntryGet 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
- Overrides:
getI1in classConstantPoolEntry
-
getI2
public int getI2()Description copied from class:ConstantPoolEntryGet 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
- Overrides:
getI2in classConstantPoolEntry
-