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

java.lang.Object
  extended byorg.apache.derby.iapi.services.classfile.ConstantPoolEntry
      extended byorg.apache.derby.iapi.services.classfile.CONSTANT_Index_info

final class CONSTANT_Index_info
extends ConstantPoolEntry

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


Field Summary
private  int i1
           
private  int i2
           
 
Fields inherited from class org.apache.derby.iapi.services.classfile.ConstantPoolEntry
doubleSlot, index, tag
 
Constructor Summary
(package private) CONSTANT_Index_info(int tag, int i1, int i2)
           
 
Method Summary
(package private)  int classFileSize()
          Return an estimate of the size of the constant pool entry.
 boolean equals(java.lang.Object other)
           
 int getI1()
          Get the first index in a index type pool entry.
 int getI2()
          Get the second index in a index type pool entry.
 int hashCode()
           
(package private)  void put(ClassFormatOutput out)
           
(package private)  void set(int tag, int i1, int i2)
          Used when searching
 
Methods inherited from class org.apache.derby.iapi.services.classfile.ConstantPoolEntry
doubleSlot, getIndex, getKey, getTag, setIndex
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

i1

private int i1

i2

private int i2
Constructor Detail

CONSTANT_Index_info

CONSTANT_Index_info(int tag,
                    int i1,
                    int i2)
Method Detail

hashCode

public int hashCode()

equals

public boolean equals(java.lang.Object other)

set

void set(int tag,
         int i1,
         int i2)
Used when searching


classFileSize

int classFileSize()
Description copied from class: ConstantPoolEntry
Return an estimate of the size of the constant pool entry.

Specified by:
classFileSize in class ConstantPoolEntry

put

void put(ClassFormatOutput out)
   throws java.io.IOException
Overrides:
put in class ConstantPoolEntry
Throws:
java.io.IOException

getI1

public int getI1()
Description copied from class: ConstantPoolEntry
Get the first index in a index type pool entry. This call is valid when getTag() returns one of

Overrides:
getI1 in class ConstantPoolEntry

getI2

public int getI2()
Description copied from class: ConstantPoolEntry
Get the second index in a index type pool entry. This call is valid when getTag() returns one of

Overrides:
getI2 in class ConstantPoolEntry

Built on Mon 2007-06-04 09:58:47+0400, from revision ???

Apache Derby V10.1 Engine Documentation - Copyright © 1997,2005 The Apache Software Foundation or its licensors, as applicable.