com.jrockit.memleak.value
Class InstanceReferrers

java.lang.Object
  extended by com.jrockit.memleak.value.InstanceReferrers
All Implemented Interfaces:
IInstanceReferrers

public class InstanceReferrers
extends java.lang.Object
implements IInstanceReferrers

Holds information about which instances that point to a certain object.

Since:
Creation date: 2004-sep-15
Author:
Staffan Larsen, Helena Åberg Östlund

Field Summary
 
Fields inherited from interface com.jrockit.memleak.IInstanceReferrers
EMPTY_ARRAY
 
Constructor Summary
InstanceReferrers(IObjectInfo targetInfo, IObjectInfo[] ois, IStaticField[] staticFields, IThreadRoot[] threadRoots, int globalHandles)
           
 
Method Summary
 int getGlobalHandles()
          Returns the number of global handles that refer to this instance.
 IObjectInfo[] getInstances()
          Returns info about objects that refer to the instance.
 IStaticField[] getStaticFields()
          Returns an array of names of all classes which have static fields that refer to this instance
 IObjectInfo getTargetObjectInfo()
          Returns the object ID of the referree.
 IThreadRoot[] getThreadRoots()
          Returns the threadroots that refer to this instance.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstanceReferrers

public InstanceReferrers(IObjectInfo targetInfo,
                         IObjectInfo[] ois,
                         IStaticField[] staticFields,
                         IThreadRoot[] threadRoots,
                         int globalHandles)
Parameters:
targetInfo -
ois -
staticFields -
threadRoots -
globalHandles -
Method Detail

getTargetObjectInfo

public IObjectInfo getTargetObjectInfo()
Description copied from interface: IInstanceReferrers
Returns the object ID of the referree.

Specified by:
getTargetObjectInfo in interface IInstanceReferrers
Returns:
an object ID

getInstances

public IObjectInfo[] getInstances()
Description copied from interface: IInstanceReferrers
Returns info about objects that refer to the instance.

Specified by:
getInstances in interface IInstanceReferrers
Returns:
array of ObjectInfo:s

getStaticFields

public IStaticField[] getStaticFields()
Description copied from interface: IInstanceReferrers
Returns an array of names of all classes which have static fields that refer to this instance

Specified by:
getStaticFields in interface IInstanceReferrers
Returns:
an array of class names

getThreadRoots

public IThreadRoot[] getThreadRoots()
Description copied from interface: IInstanceReferrers
Returns the threadroots that refer to this instance.

Specified by:
getThreadRoots in interface IInstanceReferrers
Returns:
an array of threadroots

getGlobalHandles

public int getGlobalHandles()
Description copied from interface: IInstanceReferrers
Returns the number of global handles that refer to this instance.

Specified by:
getGlobalHandles in interface IInstanceReferrers
Returns:
the number of global handles

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 1999, 2011, Oracle and/or its affiliates. All rights reserved.