Package org.eclipse.mat.snapshot.model
Class ThreadToLocalReference
java.lang.Object
org.eclipse.mat.snapshot.model.ObjectReference
org.eclipse.mat.snapshot.model.NamedReference
org.eclipse.mat.snapshot.model.PseudoReference
org.eclipse.mat.snapshot.model.ThreadToLocalReference
- All Implemented Interfaces:
Serializable
The class represents a references from a running thread object to objects
which are local for this thread. Such objects could be for example java local
variables, objects used for synchronization in this thread, etc...
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionThreadToLocalReference(ISnapshot snapshot, long address, String name, int localObjectId, GCRootInfo[] gcRootInfo) Create a thread to local reference -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe description of the thread root information.intThe id of the objectinthashCode()Methods inherited from class org.eclipse.mat.snapshot.model.NamedReference
getNameMethods inherited from class org.eclipse.mat.snapshot.model.ObjectReference
getObject, getObjectAddress, toString
-
Constructor Details
-
ThreadToLocalReference
public ThreadToLocalReference(ISnapshot snapshot, long address, String name, int localObjectId, GCRootInfo[] gcRootInfo) Create a thread to local reference- Parameters:
snapshot- the snapshotaddress- the address of the objectname- the description of the reference e.g. the root types surrounded by '<' '>'localObjectId- the local reference object idgcRootInfo- a description of the root type e.g. Java local etc.
-
-
Method Details
-
getObjectId
public int getObjectId()Description copied from class:ObjectReferenceThe id of the object- Overrides:
getObjectIdin classObjectReference- Returns:
- the object id
-
getGcRootInfo
The description of the thread root information.- Returns:
- an array of GC information for the local reference
-
equals
- Overrides:
equalsin classPseudoReference
-
hashCode
public int hashCode()- Overrides:
hashCodein classPseudoReference
-