com.jrockit.memleak.value
Class ObjectInfo

java.lang.Object
  extended by com.jrockit.memleak.value.AbstractObjectInfo
      extended by com.jrockit.memleak.value.ObjectInfo
All Implemented Interfaces:
IObjectInfo, IObjectSpecifier, IClassInfoHolder
Direct Known Subclasses:
ClassObjectInfo

public class ObjectInfo
extends AbstractObjectInfo

Representation of an object reference, including its class and ID.

Author:
mpersson

Field Summary
 
Fields inherited from class com.jrockit.memleak.value.AbstractObjectInfo
classInfo, objectID
 
Fields inherited from interface com.jrockit.memleak.IObjectInfo
EMPTY_ARRAY
 
Constructor Summary
ObjectInfo(int objectID, ClassInfo classInfo)
           
 
Method Summary
 IFieldValue[] getFieldValues(Policy policy)
          Get the values and names for all the fields in the object represented by this IObjectInfo.
 java.lang.String toString()
           
 
Methods inherited from class com.jrockit.memleak.value.AbstractObjectInfo
equals, equals, getClassInfo, getField, getFieldReference, getFieldValue, getKeepAliveSize, getObjectId, hashCode, isDiscarded, isValid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectInfo

public ObjectInfo(int objectID,
                  ClassInfo classInfo)
Parameters:
objectID -
classInfo -
Method Detail

getFieldValues

public IFieldValue[] getFieldValues(Policy policy)
                             throws GarbageCollectedException
Description copied from interface: IObjectInfo
Get the values and names for all the fields in the object represented by this IObjectInfo.

Note that null may be returned, if the policy allows it.

Parameters:
policy - the cache policy to use
Returns:
an array of IFieldValues representing the fields, or null according to policy
Throws:
GarbageCollectedException - if the object has been garbage collected.

toString

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


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