|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IMemleakValueFactory
Factory interface for creating memleak value objects.
| Method Summary | |
|---|---|
IArrayInfo |
createArrayInfo(int objectID,
IClassInfo classInfo,
int length)
Create an IArrayInfo value object. |
IArraySizeInfo |
createArraySizeInfo(IArrayInfo arrayInfo,
long size)
Create IArraySizeInfo value object. |
IClassInfo |
createClassInfo(int classID,
java.lang.String name,
int modifiers,
int numDeclaredStaticFields,
int numInstanceFields,
java.lang.String srcFileName,
IObjectSpecifier classLoaderSpec)
Create IClassInfo value object. |
IFieldInfo |
createFieldInfo(IClassInfo declaringClassInfo,
java.lang.String name,
int modifiers)
Create IFieldInfo value object. |
IHeapHistogram |
createHeapHistogram(int numInstances,
long size,
float growthRate,
long creationMillis,
java.util.List<ITypeHeapInfo<IClassInfo>> heapInfos,
java.util.Collection<ITypeHeapInfo<? extends INamedType>> groupedHeapInfos)
Create IHeapHistogram value object. |
IInstanceReferrers |
createInstanceReferrers(IObjectInfo targetInfo,
IObjectInfo[] ois,
IStaticField[] staticFields,
IThreadRoot[] threadRoots,
int globalHandles)
Create IInstanceReferrers value object. |
ILocation |
createLocation(IMethodInfo methodInfo,
int line)
Create a ILocation value object. |
IMethodInfo |
createMethodInfo(IClassInfo declaringClassInfo,
java.lang.String name,
java.lang.String descriptor,
int modifiers)
Create a IMethodInfo value object. |
IObjectInfo |
createObjectInfo(int objectID,
IClassInfo classInfo)
Create a IObjectInfo value object. |
IPointToTypeInfo |
createPointToTypeInfo(IClassInfo referredType,
int refInstances,
int[] instances,
IClassInfo[] referrers,
int totalRef)
Create IPointToTypeInfo value object. |
IFieldValue |
createPrimitiveFieldValue(IFieldInfo info,
java.lang.Object valueWrapper)
Create IFieldValue primitive value object. |
IValue |
createPrimitiveValue(java.lang.Object valueWrapper)
Create IValue primitive value object. |
IFieldValue |
createReferenceFieldValue(IFieldInfo info,
IObjectInfo value)
Create IFieldValue reference value object. |
IValue |
createReferenceValue(IObjectInfo value)
Create IValue reference value object. |
IRelationshipInfo |
createRelationshipInfo(IObjectInfo fromInfo,
long keepalive_size)
Create IRelationshipInfo value object. |
IStaticField |
createStaticField(IClassInfo declaringClassInfo,
java.lang.String fieldName,
int modifiers)
Create IStaticField value object. |
IThreadRoot |
createThreadRoot(java.lang.String name,
IMethodInfo methodInfo)
Create IThreadRoot value object. |
ITrace |
createTrace(int count,
ILocation[] stack)
Create ITrace value object. |
ITypeHeapInfo<IClassInfo> |
createTypeHeapInfo(IClassInfo classInfo,
int numInstances,
long size,
float growthRate,
long creationMillis)
Create ITypeHeapInfo value object. |
boolean |
markDiscarded(IObjectInfo objectInfo)
Mark the given objectInfo as discarded, if possible and if (it is likely that) the objectInfo was created by this factory. |
| Method Detail |
|---|
IArrayInfo createArrayInfo(int objectID,
IClassInfo classInfo,
int length)
IArrayInfo value object.
IClassInfo.isArrayClass() for classInfo must be
true, or IllegalArgumentException will be thrown.
Note that if length is unknown (-1),
createObjectInfo(int, IClassInfo) may be called instead.
objectID - classInfo - length -
IArrayInfocreateObjectInfo(int, IClassInfo)
IArraySizeInfo createArraySizeInfo(IArrayInfo arrayInfo,
long size)
IArraySizeInfo value object.
arrayInfo - size -
IArraySizeInfo
IFieldInfo createFieldInfo(IClassInfo declaringClassInfo,
java.lang.String name,
int modifiers)
IFieldInfo value object.
declaringClassInfo - the class which defines this fieldname - modifiers - access modifiers, per Modifier
IFieldInfo
IFieldValue createReferenceFieldValue(IFieldInfo info,
IObjectInfo value)
IFieldValue reference value object.
info - value -
IFieldValue
IFieldValue createPrimitiveFieldValue(IFieldInfo info,
java.lang.Object valueWrapper)
IFieldValue primitive value object.
info - valueWrapper -
IFieldValue
IHeapHistogram createHeapHistogram(int numInstances,
long size,
float growthRate,
long creationMillis,
java.util.List<ITypeHeapInfo<IClassInfo>> heapInfos,
java.util.Collection<ITypeHeapInfo<? extends INamedType>> groupedHeapInfos)
IHeapHistogram value object.
numInstances - size - growthRate - creationMillis - heapInfos - groupedHeapInfos -
IHeapHistogram
IInstanceReferrers createInstanceReferrers(IObjectInfo targetInfo,
IObjectInfo[] ois,
IStaticField[] staticFields,
IThreadRoot[] threadRoots,
int globalHandles)
IInstanceReferrers value object.
targetInfo - ois - staticFields - threadRoots - globalHandles -
IInstanceReferrers
ILocation createLocation(IMethodInfo methodInfo,
int line)
ILocation value object.
methodInfo - line -
ILocation
IMethodInfo createMethodInfo(IClassInfo declaringClassInfo,
java.lang.String name,
java.lang.String descriptor,
int modifiers)
IMethodInfo value object.
declaringClassInfo - name - descriptor - modifiers -
IMethodInfo
IObjectInfo createObjectInfo(int objectID,
IClassInfo classInfo)
IObjectInfo value object.
If IClassInfo.isArrayClass() for classInfo is true,
an IArrayInfo must be returned, with the length set to the uninitialized
value -1. The instance should preferably also implement
IModifyOnce.
objectID - classInfo -
IObjectInfo
IClassInfo createClassInfo(int classID,
java.lang.String name,
int modifiers,
int numDeclaredStaticFields,
int numInstanceFields,
java.lang.String srcFileName,
IObjectSpecifier classLoaderSpec)
IClassInfo value object.
classID - name - modifiers - numDeclaredStaticFields - numInstanceFields - srcFileName - classLoaderSpec - or null if unknown
IClassInfo
IPointToTypeInfo createPointToTypeInfo(IClassInfo referredType,
int refInstances,
int[] instances,
IClassInfo[] referrers,
int totalRef)
IPointToTypeInfo value object.
referredType - refInstances - instances - referrers - totalRef -
IPointToTypeInfo
IRelationshipInfo createRelationshipInfo(IObjectInfo fromInfo,
long keepalive_size)
IRelationshipInfo value object.
fromInfo - keepalive_size -
IRelationshipInfo
IStaticField createStaticField(IClassInfo declaringClassInfo,
java.lang.String fieldName,
int modifiers)
IStaticField value object.
declaringClassInfo - fieldName - modifiers -
IStaticField
IThreadRoot createThreadRoot(java.lang.String name,
IMethodInfo methodInfo)
IThreadRoot value object.
name - methodInfo -
IThreadRoot
ITrace createTrace(int count,
ILocation[] stack)
ITrace value object.
count - stack -
ITrace
ITypeHeapInfo<IClassInfo> createTypeHeapInfo(IClassInfo classInfo,
int numInstances,
long size,
float growthRate,
long creationMillis)
ITypeHeapInfo value object.
classInfo - numInstances - size - growthRate - creationMillis -
ITypeHeapInfoIValue createReferenceValue(IObjectInfo value)
IValue reference value object.
value -
IValueIValue createPrimitiveValue(java.lang.Object valueWrapper)
IValue primitive value object.
valueWrapper -
IValueboolean markDiscarded(IObjectInfo objectInfo)
IObjectInfo in order to require access to the factory.
objectInfo -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||