com.jrockit.memleak.value
Class ObjectInfo
java.lang.Object
com.jrockit.memleak.value.AbstractObjectInfo
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
| 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 |
ObjectInfo
public ObjectInfo(int objectID,
ClassInfo classInfo)
- Parameters:
objectID - classInfo -
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.