- 
- All Known Subinterfaces:
- BooleanValue,- ByteValue,- CharValue,- DoubleValue,- FloatValue,- IntegerValue,- LongValue,- ShortValue
 
 public interface PrimitiveValue extends Value The value assigned to a field or variable of primitive type in a target VM. Each primitive values is accessed through a subinterface of this interface.- Since:
- 1.3
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanbooleanValue()Converts this value to a BooleanValue and returns the result as a boolean.bytebyteValue()Converts this value to a ByteValue and returns the result as a byte.charcharValue()Converts this value to a CharValue and returns the result as a char.doubledoubleValue()Converts this value to a DoubleValue and returns the result as a double.floatfloatValue()Converts this value to a FloatValue and returns the result as a float.intintValue()Converts this value to an IntegerValue and returns the result as an int.longlongValue()Converts this value to a LongValue and returns the result as a long.shortshortValue()Converts this value to a ShortValue and returns the result as a short.- 
Methods declared in interface com.sun.jdi.MirrortoString, virtualMachine
 
- 
 
- 
- 
- 
Method Detail- 
booleanValueboolean booleanValue() Converts this value to a BooleanValue and returns the result as a boolean.- Returns:
- trueif this value is non-zero (or- trueif already a BooleanValue); false otherwise.
 
 - 
byteValuebyte byteValue() Converts this value to a ByteValue and returns the result as a byte. The value will be narrowed as necessary, and magnitude or precision information may be lost (as if the primitive had been cast to a byte).- Returns:
- the value, converted to byte
 
 - 
charValuechar charValue() Converts this value to a CharValue and returns the result as a char. The value will be narrowed or widened as necessary, and magnitude or precision information may be lost (as if the primitive had been cast to a char, in the narrowing case).- Returns:
- the value, converted to char
 
 - 
shortValueshort shortValue() Converts this value to a ShortValue and returns the result as a short. The value will be narrowed or widened as necessary, and magnitude or precision information may be lost (as if the primitive had been cast to a short, in the narrowing case).- Returns:
- the value, converted to short
 
 - 
intValueint intValue() Converts this value to an IntegerValue and returns the result as an int. The value will be narrowed or widened as necessary, and magnitude or precision information may be lost (as if the primitive had been cast to an int, in the narrowing case).- Returns:
- the value, converted to int
 
 - 
longValuelong longValue() Converts this value to a LongValue and returns the result as a long. The value will be narrowed or widened as necessary, and magnitude or precision information may be lost (as if the primitive had been cast to a long, in the narrowing case).- Returns:
- the value, converted to long
 
 - 
floatValuefloat floatValue() Converts this value to a FloatValue and returns the result as a float. The value will be narrowed or widened as necessary, and magnitude or precision information may be lost (as if the primitive had been cast to a float, in the narrowing case).- Returns:
- the value, converted to float
 
 - 
doubleValuedouble doubleValue() Converts this value to a DoubleValue and returns the result as a double. The value will be widened as necessary, and precision information may be lost.- Returns:
- the value, converted to double
 
 
- 
 
-