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

ConstInteger

public class ConstInteger extends ConstValue
Class representing an integer constant in the constant pool of a class file

Fields Summary
public static final int
MyTag
private int
intValue
Constructors Summary
ConstInteger(int i)

    intValue = i;
  
Methods Summary
public java.lang.Stringdescriptor()
Return the descriptor string for the constant type.

      return "I";//NOI18N
  
voidformatData(java.io.DataOutputStream b)

    b.writeInt(intValue);
  
static com.sun.jdo.api.persistence.enhancer.classfile.ConstIntegerread(java.io.DataInputStream input)

    return new ConstInteger (input.readInt());
  
voidresolve(ConstantPool p)

 
public inttag()
The tag of this constant entry


  /* public accessors */

           
       return MyTag; 
public java.lang.StringtoString()
A printable representation

      return "CONSTANTInteger(" + indexAsString() + "): " + //NOI18N
          "intValue(" + Integer.toString(intValue) + ")";//NOI18N
  
public intvalue()
return the value associated with the entry

    return intValue;