Top Description Fields Constructors Methods
org.apache.derby.iapi.services.classfile

public abstract Class ConstantPoolEntry

extends Object
Class Inheritance
Known Direct Subclasses
org.apache.derby.iapi.services.classfile.CONSTANT_Double_info, org.apache.derby.iapi.services.classfile.CONSTANT_Float_info, org.apache.derby.iapi.services.classfile.CONSTANT_Index_info, org.apache.derby.iapi.services.classfile.CONSTANT_Integer_info, org.apache.derby.iapi.services.classfile.CONSTANT_Long_info, org.apache.derby.iapi.services.classfile.CONSTANT_Utf8_info
Imports
org.apache.derby.iapi.services.classfile.VMDescriptor, org.apache.derby.shared.common.sanity.SanityManager, java.io.IOException

Constant Pool class - pages 92-99

Field Summary

Modifier and TypeField and Description
protected boolean
protected int
protected int

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
pack-priv abstract int
classFileSize()

Return an estimate of the size of the constant pool entry.

pack-priv boolean
pack-priv int
getI1()

Get the first index in a index type pool entry.

pack-priv int
getI2()

Get the second index in a index type pool entry.

pack-priv int
pack-priv Object
getKey()

Return the key used to key this object in a hashtable

pack-priv final int
getTag()

Return the tag or type of the entry.

pack-priv void
pack-priv void
setIndex(int index)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

doubleSlotback to summary
protected boolean doubleSlot
indexback to summary
protected int index
tagback to summary
protected int tag

Constructor Detail

ConstantPoolEntryback to summary
protected ConstantPoolEntry(int tag)

Method Detail

classFileSizeback to summary
pack-priv abstract int classFileSize()

Return an estimate of the size of the constant pool entry.

doubleSlotback to summary
pack-priv boolean doubleSlot()
getI1back to summary
pack-priv 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
getI2back to summary
pack-priv 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
getIndexback to summary
pack-priv int getIndex()
getKeyback to summary
pack-priv Object getKey()

Return the key used to key this object in a hashtable

getTagback to summary
pack-priv final int getTag()

Return the tag or type of the entry. Will be equal to one of the constants above, e.g. CONSTANT_Class.

putback to summary
pack-priv void put(ClassFormatOutput out) throws IOException
setIndexback to summary
pack-priv void setIndex(int index)