public interface

PrimitiveValue

implements Value
com.sun.jdi.PrimitiveValue
Known Indirect Subclasses

Class Overview

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.

Summary

Public Methods
abstract boolean booleanValue()
Converts this value to a BooleanValue and returns the result as a boolean.
abstract byte byteValue()
Converts this value to a ByteValue and returns the result as a byte.
abstract char charValue()
Converts this value to a CharValue and returns the result as a char.
abstract double doubleValue()
Converts this value to a DoubleValue and returns the result as a double.
abstract float floatValue()
Converts this value to a FloatValue and returns the result as a float.
abstract int intValue()
Converts this value to an IntegerValue and returns the result as an int.
abstract long longValue()
Converts this value to a LongValue and returns the result as a long.
abstract short shortValue()
Converts this value to a ShortValue and returns the result as a short.
[Expand]
Inherited Methods
From interface com.sun.jdi.Mirror
From interface com.sun.jdi.Value

Public Methods

public abstract boolean booleanValue ()

Converts this value to a BooleanValue and returns the result as a boolean.

Returns
  • true if this value is non-zero (or true if already a BooleanValue); false otherwise.

public abstract byte 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

public abstract char 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

public abstract double 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

public abstract float 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

public abstract int 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

public abstract long 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

public abstract short 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