public final class LeakTraceElement
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
LeakTraceElement.Holder |
static class |
LeakTraceElement.Type |
| Modifier and Type | Field and Description |
|---|---|
java.util.List<java.lang.String> |
classHierarchy
Class hierarchy for that object.
|
java.lang.String |
className |
Exclusion |
exclusion
If not null, there was no path that could exclude this element.
|
java.lang.String |
extra
Additional information, may be null.
|
java.util.List<LeakReference> |
fieldReferences
List of all fields (member and static) for that object.
|
java.util.List<java.lang.String> |
fields
Deprecated.
Use
fieldReferences instead. |
LeakTraceElement.Holder |
holder |
LeakReference |
reference
Information about the reference that points to the next
LeakTraceElement in the leak
chain. |
java.lang.String |
referenceName
Deprecated.
Use
reference and LeakReference.getDisplayName() instead.
Null if this is the last element in the leak trace, ie the leaking object. |
LeakTraceElement.Type |
type
Deprecated.
Use
reference and LeakReference.type instead.
Null if this is the last element in the leak trace, ie the leaking object. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFieldReferenceValue(java.lang.String referenceName)
Returns the string value of the first field reference that has the provided referenceName, or
null if no field reference with that name was found.
|
java.lang.String |
getSimpleClassName()
Returns
className without the package. |
boolean |
isInstanceOf(java.lang.Class<?> expectedClass) |
boolean |
isInstanceOf(java.lang.String expectedClassName)
Returns true if this element is an instance of the provided class name, false otherwise.
|
java.lang.String |
toDetailedString() |
java.lang.String |
toString() |
java.lang.String |
toString(boolean maybeLeakCause) |
public final LeakReference reference
LeakTraceElement in the leak
chain. Null if this is the last element in the leak trace, ie the leaking object.@Deprecated public final java.lang.String referenceName
reference and LeakReference.getDisplayName() instead.
Null if this is the last element in the leak trace, ie the leaking object.@Deprecated public final LeakTraceElement.Type type
reference and LeakReference.type instead.
Null if this is the last element in the leak trace, ie the leaking object.public final LeakTraceElement.Holder holder
public final java.util.List<java.lang.String> classHierarchy
className. Object
is excluded. There is always at least one element.public final java.lang.String className
public final java.lang.String extra
public final Exclusion exclusion
public final java.util.List<LeakReference> fieldReferences
@Deprecated public final java.util.List<java.lang.String> fields
fieldReferences instead.public java.lang.String getFieldReferenceValue(java.lang.String referenceName)
public boolean isInstanceOf(java.lang.Class<?> expectedClass)
isInstanceOf(String)public boolean isInstanceOf(java.lang.String expectedClassName)
public java.lang.String getSimpleClassName()
className without the package.public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(boolean maybeLeakCause)
public java.lang.String toDetailedString()