Class ValuesCollectionExtractor
java.lang.Object
org.eclipse.mat.internal.collectionextract.WrapperCollectionExtractor
org.eclipse.mat.internal.collectionextract.ValuesCollectionExtractor
- All Implemented Interfaces:
ICollectionExtractor
-
Constructor Summary
ConstructorsConstructorDescriptionValuesCollectionExtractor(String field) ValuesCollectionExtractor(String field, ICollectionExtractor extractor) -
Method Summary
Modifier and TypeMethodDescriptionextractEntries(IObject coll) Extracts the array containing the collection contentint[]extractEntryIds(IObject coll) Returns the object ids (int) for all objects which are contained in the collectionbooleanReturn true if the collection array based and the array can be extracted from the heap dumpMethods inherited from class org.eclipse.mat.internal.collectionextract.WrapperCollectionExtractor
getCapacity, getFillRatio, getNumberOfNotNullElements, getSize, hasCapacity, hasExtractableContents, hasFillRatio, hasSize
-
Constructor Details
-
ValuesCollectionExtractor
-
ValuesCollectionExtractor
-
-
Method Details
-
extractEntryIds
Description copied from interface:ICollectionExtractorReturns the object ids (int) for all objects which are contained in the collection- Specified by:
extractEntryIdsin interfaceICollectionExtractor- Overrides:
extractEntryIdsin classWrapperCollectionExtractor- Parameters:
coll- - the collection to find the objects it holds- Returns:
- an array of ints which are the object ids.
- Throws:
SnapshotException- if there is a problem retrieving data from the snapshot- See Also:
-
hasExtractableArray
public boolean hasExtractableArray()Description copied from interface:ICollectionExtractorReturn true if the collection array based and the array can be extracted from the heap dump- Specified by:
hasExtractableArrayin interfaceICollectionExtractor- Overrides:
hasExtractableArrayin classWrapperCollectionExtractor- Returns:
- true if
ICollectionExtractor.extractEntries(IObject)could be called - See Also:
-
extractEntries
Description copied from interface:ICollectionExtractorExtracts the array containing the collection content- Specified by:
extractEntriesin interfaceICollectionExtractor- Overrides:
extractEntriesin classWrapperCollectionExtractor- Parameters:
coll- - the collection to find the object array holding its contents- Returns:
- the backing array for the collection
- Throws:
SnapshotException- if there is a problem retrieving data from the snapshot- See Also:
-