Package org.eclipse.mat.query
Interface IResultTree
- All Superinterfaces:
IResult,IStructuredResult
- All Known Implementing Classes:
BigDropsQuery,BundleRegistryQuery.BundleTreeResult,BundleRegistryQuery.ExtensionTreeResult,BundleRegistryQuery.ServicesTreeResult,ClassReferrersQuery.InboundClasses,ClassReferrersQuery.OutboundClasses,CompareTablesQuery.ComparisonResultTree,DominatorQuery.Tree,DuplicatedClassesQuery,Histogram.ClassLoaderTree,Histogram.PackageTree,Histogram.SuperclassTree,MultiplePath2GCRootsQuery.Tree,ObjectListResult.Inbound,ObjectListResult.Outbound,Path2GCRootsQuery.Tree,RefinedTree
Interface for results in tree-form.
-
Method Summary
Modifier and TypeMethodDescriptionList<?>getChildren(Object parent) Returns the child elements of the given parent.List<?>Returns the root elements of the tree.booleanhasChildren(Object element) Returns whether the given element has children.Methods inherited from interface org.eclipse.mat.query.IResult
getResultMetaDataMethods inherited from interface org.eclipse.mat.query.IStructuredResult
getColumns, getColumnValue, getContext
-
Method Details
-
getElements
List<?> getElements()Returns the root elements of the tree.- Returns:
- a list of all the root elements of the tree
as opaque row objects representing each row
which can be passed to
getChildren(Object)orIStructuredResult.getContext(Object)orIStructuredResult.getColumnValue(Object, int).
-
hasChildren
Returns whether the given element has children.- Parameters:
element- the opaque object used to indicate which branch- Returns:
- true if this element has children
-
getChildren
Returns the child elements of the given parent.- Parameters:
parent- The row object as returned by thegetElements()orgetChildren(Object)methods.- Returns:
- a list of children of this branch of the tree
-