public class ExtractionUtils extends Object
Constructor and Description |
---|
ExtractionUtils() |
Modifier and Type | Method and Description |
---|---|
static IInstance |
followOnlyNonArrayOutgoingReference(IObject obj)
Get the only non-array object field from the object.
|
static IObject |
followOnlyOutgoingReferencesExceptLast(String field,
IObject obj)
Walks the only non-array object field from the object,
stopping at the second-last.
|
static int |
getNumberOfNotNullArrayElements(int[] ids) |
static int |
getNumberOfNotNullArrayElements(IObjectArray arrayObject) |
static int |
getNumberOfNotNullArrayElements(long[] addresses) |
static IObjectArray |
getOnlyArrayField(IObject obj)
Get the only array field from the object.
|
static int[] |
referenceArrayToIds(ISnapshot snapshot,
long[] referenceArray) |
static JdkVersion |
resolveVersion(ISnapshot snapshot) |
static Integer |
toInteger(Object i) |
public static int getNumberOfNotNullArrayElements(IObjectArray arrayObject)
public static int getNumberOfNotNullArrayElements(long[] addresses)
public static int getNumberOfNotNullArrayElements(int[] ids)
public static int[] referenceArrayToIds(ISnapshot snapshot, long[] referenceArray) throws SnapshotException
SnapshotException
public static IInstance followOnlyNonArrayOutgoingReference(IObject obj) throws SnapshotException
obj
- SnapshotException
public static IObject followOnlyOutgoingReferencesExceptLast(String field, IObject obj) throws SnapshotException
obj
- SnapshotException
public static IObjectArray getOnlyArrayField(IObject obj) throws SnapshotException
obj
- SnapshotException
public static JdkVersion resolveVersion(ISnapshot snapshot) throws SnapshotException
SnapshotException