Class MultiplePath2GCRootsQuery.Tree
- java.lang.Object
-
- org.eclipse.mat.internal.snapshot.inspections.MultiplePath2GCRootsQuery.Tree
-
- All Implemented Interfaces:
IResult,IResultTree,IStructuredResult
- Enclosing class:
- MultiplePath2GCRootsQuery
public abstract static class MultiplePath2GCRootsQuery.Tree extends Object implements IResultTree
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description List<?>getChildren(Object parent)Returns the child elements of the given parent.List<?>getElements()Returns the root elements of the tree.abstract MultiplePath2GCRootsQuery.GroupinggetGroupedBy()ResultMetaDatagetResultMetaData()(Optionally) Return meta data of the result needed to fine-tune the display of the result.MultiplePath2GCRootsQuery.TreegroupBy(MultiplePath2GCRootsQuery.Grouping groupBy)booleanhasChildren(Object element)Returns whether the given element has children.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.mat.query.IStructuredResult
getColumns, getColumnValue, getContext
-
-
-
-
Method Detail
-
getResultMetaData
public ResultMetaData getResultMetaData()
Description copied from interface:IResult(Optionally) Return meta data of the result needed to fine-tune the display of the result. This could include an additional context, an additional query to run on selected data from the result , additional calculated columns, or an indication that the results are already presorted.- Specified by:
getResultMetaDatain interfaceIResult- Returns:
- the metadata for the result, used to obtain extra data
-
getElements
public List<?> getElements()
Description copied from interface:IResultTreeReturns the root elements of the tree.- Specified by:
getElementsin interfaceIResultTree- Returns:
- a list of all the root elements of the tree
as opaque row objects representing each row
which can be passed to
IResultTree.getChildren(Object)orIStructuredResult.getContext(Object)orIStructuredResult.getColumnValue(Object, int).
-
hasChildren
public boolean hasChildren(Object element)
Description copied from interface:IResultTreeReturns whether the given element has children.- Specified by:
hasChildrenin interfaceIResultTree- Parameters:
element- the opaque object used to indicate which branch- Returns:
- true if this element has children
-
getChildren
public List<?> getChildren(Object parent)
Description copied from interface:IResultTreeReturns the child elements of the given parent.- Specified by:
getChildrenin interfaceIResultTree- Parameters:
parent- The row object as returned by theIResultTree.getElements()orIResultTree.getChildren(Object)methods.- Returns:
- a list of children of this branch of the tree
-
getGroupedBy
public abstract MultiplePath2GCRootsQuery.Grouping getGroupedBy()
-
groupBy
public MultiplePath2GCRootsQuery.Tree groupBy(MultiplePath2GCRootsQuery.Grouping groupBy)
-
-