org.apache.derby.iapi.services.classfile
Class ConstantPoolEntry

java.lang.Object
  extended by 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

public abstract class ConstantPoolEntry
extends java.lang.Object

Constant Pool class - pages 92-99


Field Summary
protected  boolean doubleSlot
           
protected  int index
           
protected  int tag
           
 
Constructor Summary
protected ConstantPoolEntry(int tag)
           
 
Method Summary
(package private) abstract  int classFileSize()
          Return an estimate of the size of the constant pool entry.
(package private)  boolean doubleSlot()
           
(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)  java.lang.Object getKey()
          Return the key used to key this object in a hashtable
(package private)  int getTag()
          Return the tag or type of the entry.
(package private)  void put(ClassFormatOutput out)
           
(package private)  void setIndex(int index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tag

protected int tag

doubleSlot

protected boolean doubleSlot

index

protected int index
Constructor Detail

ConstantPoolEntry

protected ConstantPoolEntry(int tag)
Method Detail

getIndex

int getIndex()

setIndex

void setIndex(int index)

doubleSlot

boolean doubleSlot()

getKey

java.lang.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

void put(ClassFormatOutput out)
   throws java.io.IOException
Throws:
java.io.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


getI2

int getI2()
Get the second index in a index type pool entry. This call is valid when getTag() returns one of


Built on Thu 2011-03-10 11:54:14+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.