HeapValue

class HeapValue(val graph: HeapGraph, val holder: ValueHolder)

Represents a value in the heap dump, which can be an object reference or a primitive type.

Constructors

Link copied to clipboard
constructor(graph: HeapGraph, holder: ValueHolder)

Functions

Link copied to clipboard

If this HeapValue if it represents a non null object reference to an instance of the String class that exists in the heap dump, returns a String instance with content that matches the string in the heap dump. Otherwise returns null.

Properties

Link copied to clipboard

This HeapValue as a Boolean if it represents one, or null otherwise.

Link copied to clipboard
val asByte: Byte?

This HeapValue as a Byte if it represents one, or null otherwise.

Link copied to clipboard
val asChar: Char?

This HeapValue as a Char if it represents one, or null otherwise.

Link copied to clipboard

This HeapValue as a Double if it represents one, or null otherwise.

Link copied to clipboard

This HeapValue as a Float if it represents one, or null otherwise.

Link copied to clipboard
val asInt: Int?

This HeapValue as an Int if it represents one, or null otherwise.

Link copied to clipboard
val asLong: Long?

This HeapValue as a Long if it represents one, or null otherwise.

Link copied to clipboard

This HeapValue as a Long if it represents a non null object reference, or null otherwise.

Link copied to clipboard

The HeapObject referenced by this HeapValue if it represents a non null object reference, or null otherwise.

Link copied to clipboard

This HeapValue as a Long if it represents an object reference, or null otherwise.

Link copied to clipboard

This HeapValue as a Short if it represents one, or null otherwise.

Link copied to clipboard

The graph of objects in the heap, which you can use to navigate the heap.

Link copied to clipboard
val holder: ValueHolder

Holds the actual value that this HeapValue represents.

Link copied to clipboard

True is this HeapValue represents a non null object reference, false otherwise.

Link copied to clipboard

True is this HeapValue represents a null object reference, false otherwise.