HeapValue

class HeapValue(graph: HeapGraph, holder: ValueHolder)

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

Constructors

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

Functions

readAsJavaString
Link copied to clipboard
fun readAsJavaString(): String?

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

asBoolean
Link copied to clipboard
val asBoolean: Boolean?

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

asByte
Link copied to clipboard
val asByte: Byte?

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

asChar
Link copied to clipboard
val asChar: Char?

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

asDouble
Link copied to clipboard
val asDouble: Double?

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

asFloat
Link copied to clipboard
val asFloat: Float?

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

asInt
Link copied to clipboard
val asInt: Int?

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

asLong
Link copied to clipboard
val asLong: Long?

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

asNonNullObjectId
Link copied to clipboard
val asNonNullObjectId: Long?

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

asObject
Link copied to clipboard
val asObject: HeapObject?

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

asObjectId
Link copied to clipboard
val asObjectId: Long?

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

asShort
Link copied to clipboard
val asShort: Short?

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

graph
Link copied to clipboard
val graph: HeapGraph

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

holder
Link copied to clipboard
val holder: ValueHolder

Holds the actual value that this HeapValue represents.

isNonNullReference
Link copied to clipboard
val isNonNullReference: Boolean

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

isNullReference
Link copied to clipboard
val isNullReference: Boolean

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