FileDocCategorySizeDatePackage
ConstBasic.javaAPI DocGlassfish v2 API3306Fri May 04 22:34:28 BST 2007com.sun.jdo.api.persistence.enhancer.classfile

ConstBasic

public abstract class ConstBasic extends Object implements VMConstants
Abstract base class of the types which represent entries in the class constant pool.

Fields Summary
protected int
index
Constructors Summary
ConstBasic()
The constructor for subtypes

Methods Summary
abstract voidformatData(java.io.DataOutputStream b)
Write this Constant pool entry to the output stream

public intgetIndex()


  /* public accessors */

  /* Get the index of this constant entry */
      return index; 
java.lang.StringindexAsString()
Return the index of this constant in the constant pool as a decimal formatted String.

 return Integer.toString(index); 
abstract voidresolve(ConstantPool p)
Resolve integer index references to the actual constant pool entries that they represent. This is used during class file reading because a constant pool entry could have a forward reference to a higher numbered constant.

voidsetIndex(int ind)
Sets the index of this constant with its containing constant pool

 index = ind; 
public abstract inttag()