1 11 package org.eclipse.jdt.internal.debug.core.model; 12 13 14 import org.eclipse.jdt.debug.core.IJavaPrimitiveValue; 15 16 import com.sun.jdi.PrimitiveValue; 17 import com.sun.jdi.Value; 18 19 22 public class JDIPrimitiveValue extends JDIValue implements IJavaPrimitiveValue { 23 24 30 public JDIPrimitiveValue(JDIDebugTarget target, Value value) { 31 super(target, value); 32 } 33 34 39 protected PrimitiveValue getUnderlyingPrimitiveValue() { 40 return (PrimitiveValue)getUnderlyingValue(); 41 } 42 43 46 public boolean getBooleanValue() { 47 return getUnderlyingPrimitiveValue().booleanValue(); 48 } 49 50 53 public byte getByteValue() { 54 return getUnderlyingPrimitiveValue().byteValue(); 55 } 56 57 60 public char getCharValue() { 61 return getUnderlyingPrimitiveValue().charValue(); 62 } 63 64 67 public double getDoubleValue() { 68 return getUnderlyingPrimitiveValue().doubleValue(); 69 } 70 71 74 public float getFloatValue() { 75 return getUnderlyingPrimitiveValue().floatValue(); 76 } 77 78 81 public int getIntValue() { 82 return getUnderlyingPrimitiveValue().intValue(); 83 } 84 85 88 public long getLongValue() { 89 return getUnderlyingPrimitiveValue().longValue(); 90 } 91 92 95 public short getShortValue() { 96 return getUnderlyingPrimitiveValue().shortValue(); 97 } 98 99 } 100 101 | Popular Tags |