1 23 24 25 package com.sun.jdo.api.persistence.enhancer.classfile; 26 27 import java.io.*; 28 29 32 33 public class ConstDouble extends ConstValue { 34 35 public static final int MyTag = CONSTANTDouble; 36 37 38 private double doubleValue; 39 40 41 42 45 public int tag () { 46 return MyTag; 47 } 48 49 52 public double value() { 53 return doubleValue; 54 } 55 56 59 public String descriptor() { 60 return "D"; } 62 63 66 public String toString () { 67 return "CONSTANTDouble(" + indexAsString() + "): " + "doubleValue(" + Double.toString(doubleValue) + ")"; } 70 71 72 73 76 ConstDouble (double f) { 77 doubleValue = f; 78 } 79 80 void formatData (DataOutputStream b) throws IOException { 81 b.writeDouble(doubleValue); 82 } 83 84 static ConstDouble read (DataInputStream input) throws IOException { 85 return new ConstDouble (input.readDouble()); 86 } 87 88 void resolve (ConstantPool p) { } 89 } 90 91 | Popular Tags |