Skip to content
🤔 Documentation issue? Report it

//leakcanary/shark/ReferencePattern

ReferencePattern

sealed class ReferencePattern : Serializable

A pattern that will match references for a given ReferenceMatcher.

Types

Name Summary
Companion object Companion
InstanceFieldPattern data class InstanceFieldPattern(val className: String, val fieldName: String) : ReferencePattern
Matches instances field references, identified by className and fieldName.
JavaLocalPattern data class JavaLocalPattern(val threadName: String) : ReferencePattern
Matches local references held in the stack of frames of a given thread, identified by its name.
NativeGlobalVariablePattern data class NativeGlobalVariablePattern(val className: String) : ReferencePattern
Matches native global variables (also known as jni global gc roots) that reference Java objects. The class name will match against classes, instances and object arrays with a matching class name.
StaticFieldPattern data class StaticFieldPattern(val className: String, val fieldName: String) : ReferencePattern
Matches static field references, identified by className and fieldName.

Inheritors

Name
JavaLocalPattern
StaticFieldPattern
InstanceFieldPattern
NativeGlobalVariablePattern