1 26 package net.sf.javaguard.classfile; 27 28 import java.io.*; 29 import java.util.*; 30 31 36 public class LongCpInfo extends CpInfo { 37 38 private long value; 39 40 41 42 43 45 protected LongCpInfo() { 46 super(CONSTANT_Long); 47 } 48 49 50 51 52 56 protected void setLongValue(long value) { 57 this.value = value; 58 } 59 60 61 65 protected long getLongValue() { 66 return value; 67 } 68 69 70 71 72 76 protected void readInfo(DataInput din) 77 throws IOException { 78 setLongValue(din.readLong()); 79 } 80 81 82 86 protected void writeInfo(DataOutput dout) 87 throws IOException { 88 dout.writeLong(getLongValue()); 89 } 90 91 92 93 94 99 public void dump(PrintWriter pw, ClassFile cf, int index) { 100 pw.print('['); pw.print(index); pw.println("]: LongCpInfo"); 101 pw.print(" -> long value: "); 102 pw.println(getLongValue()); 103 } 104 } 105 | Popular Tags |