|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.mat.inspections.collectionextract.CollectionExtractionUtils
public class CollectionExtractionUtils
Utility class providing helpers simplifying the extraction of data from objects in the heap which represent collections
| Constructor Summary | |
|---|---|
CollectionExtractionUtils()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CollectionExtractionUtils()
| Method Detail |
|---|
public static ICollectionExtractor findCollectionExtractor(IObject collection)
throws SnapshotException
collection - An IObject representing a collection
SnapshotException
public static ICollectionExtractor findCollectionExtractor(String className)
throws SnapshotException
collection - the name of a collection class
SnapshotException
public static AbstractExtractedCollection<?,?> extractCollection(IObject collection)
throws SnapshotException
collection - an IObject representing a collection for which to extract the
contents
SnapshotException
public 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 contents
SnapshotException
public static ExtractedCollection extractList(IObject collection)
throws SnapshotException
collection - an IObject representing a List for which to extract the
contents
SnapshotException
public static ExtractedMap extractMap(IObject collection)
throws SnapshotException
collection - an IObject representing a Map for which to extract the
contents
SnapshotException
public 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 contents
SnapshotException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||