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

ConstLong

public class ConstLong extends ConstValue
Class representing a long constant in the constant pool of a class file

Fields Summary
public static final int
MyTag
private long
longValue
Constructors Summary
ConstLong(long i)

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

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

    b.writeLong(longValue);
  
static com.sun.jdo.api.persistence.enhancer.classfile.ConstLongread(java.io.DataInputStream input)

    return new ConstLong (input.readLong());
  
voidresolve(ConstantPool p)

 
public inttag()
The tag of this constant entry


  /* public accessors */

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

      return "CONSTANTLong(" + indexAsString() + "): " + //NOI18N
          "longValue(" + Long.toString(longValue) + ")";//NOI18N
  
public longvalue()
return the value associated with the entry

    return longValue;