public class CollectionExtractionUtils extends Object
| Constructor and Description |
|---|
CollectionExtractionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static AbstractExtractedCollection<?,?> |
extractCollection(IObject collection)
Extracts from the heap the content of objects which represent a
collection.
|
static AbstractExtractedCollection<?,?> |
extractCollection(IObject collection,
String specificClass,
ICollectionExtractor preferredExtractor)
Extracts from the heap the content of objects which represent a
collection.
|
static ExtractedCollection |
extractList(IObject collection)
Extracts from the heap the content of objects which represent a
collection.
|
static ExtractedMap |
extractMap(IObject collection)
Extracts from the heap the content of objects which represent a Map.
|
static ExtractedMap |
extractMap(IObject collection,
String specificClass,
IMapExtractor preferredExtractor)
Extracts from the heap the content of objects which represent a Map.
|
static ICollectionExtractor |
findCollectionExtractor(IObject collection)
Finds a proper ICollectionExtractor for the object passed as parameter
|
static ICollectionExtractor |
findCollectionExtractor(String className)
Finds a proper ICollectionExtractor for the object passed as parameter
|
public static ICollectionExtractor findCollectionExtractor(IObject collection) throws SnapshotException
collection - An IObject representing a collectionSnapshotExceptionpublic static ICollectionExtractor findCollectionExtractor(String className) throws SnapshotException
className - the name of a collection classSnapshotExceptionpublic static AbstractExtractedCollection<?,?> extractCollection(IObject collection) throws SnapshotException
collection - an IObject representing a collection for which to extract the
contentsSnapshotExceptionpublic static AbstractExtractedCollection<?,?> extractCollection(IObject collection, String specificClass, ICollectionExtractor preferredExtractor) throws SnapshotException
collection - an IObject representing a collection for which to extract the
contentsspecificClass - a class name for which the preferred extractor should be usedpreferredExtractor - an extractor object to be used to extract the contentsSnapshotExceptionpublic static ExtractedCollection extractList(IObject collection) throws SnapshotException
collection - an IObject representing a List for which to extract the
contentsSnapshotExceptionpublic static ExtractedMap extractMap(IObject collection) throws SnapshotException
collection - an IObject representing a Map for which to extract the
contentsSnapshotExceptionpublic static ExtractedMap extractMap(IObject collection, String specificClass, IMapExtractor preferredExtractor) throws SnapshotException
collection - an IObject representing a Map for which to extract the
contentsspecificClass - a class name for which the preferred extractor should be usedpreferredExtractor - an extractor object to be used to extract the contentsSnapshotException