1 23 24 25 package com.sun.jdo.api.persistence.enhancer.classfile; 26 27 import java.io.*; 28 29 32 33 public class ConstLong extends ConstValue { 34 35 public static final int MyTag = CONSTANTLong; 36 37 38 private long longValue; 39 40 41 42 45 public int tag () { return MyTag; } 46 47 50 public long value() { 51 return longValue; 52 } 53 54 57 public String descriptor() { 58 return "J"; } 60 61 64 public String toString () { 65 return "CONSTANTLong(" + indexAsString() + "): " + "longValue(" + Long.toString(longValue) + ")"; } 68 69 70 71 ConstLong (long i) { 72 longValue = i; 73 } 74 75 void formatData (DataOutputStream b) throws IOException { 76 b.writeLong(longValue); 77 } 78 79 static ConstLong read (DataInputStream input) throws IOException { 80 return new ConstLong (input.readLong()); 81 } 82 83 void resolve (ConstantPool p) { } 84 85 86 } 87 88 | Popular Tags |