Package org.eclipse.mat.query.refined
Class RefinedTree
- java.lang.Object
-
- org.eclipse.mat.query.refined.RefinedStructuredResult
-
- org.eclipse.mat.query.refined.RefinedTree
-
- All Implemented Interfaces:
IIconProvider
,IResult
,IResultTree
,ISelectionProvider
,IStructuredResult
public class RefinedTree extends RefinedStructuredResult implements IResultTree
The result from refining a tree.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.mat.query.refined.RefinedStructuredResult
RefinedStructuredResult.DerivedDataJobDefinition, RefinedStructuredResult.ICalculationProgress
-
-
Field Summary
-
Fields inherited from interface org.eclipse.mat.query.IIconProvider
EMPTY
-
Fields inherited from interface org.eclipse.mat.query.ISelectionProvider
EMPTY
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<?>
getChildren(java.lang.Object parent)
Returns the child elements of the given parent.java.util.List<?>
getElements()
Returns the root elements of the tree.boolean
hasChildren(java.lang.Object element)
Returns whether the given element has children.-
Methods inherited from class org.eclipse.mat.query.refined.RefinedStructuredResult
addDerivedDataColumn, buildTotalsRow, calculate, calculateTotals, filterChanged, getColumnFor, getColumns, getColumnValue, getContext, getFilter, getFilteredCount, getFormattedColumnValue, getIcon, getJobs, getResultMetaData, getSortColumn, getSortDirection, hasActiveFilter, isDecorated, isExpanded, isSelected, setSelectionProvider, setSortOrder, sort, unwrap
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.mat.query.IResult
getResultMetaData
-
Methods inherited from interface org.eclipse.mat.query.IStructuredResult
getColumns, getColumnValue, getContext
-
-
-
-
Method Detail
-
getElements
public java.util.List<?> getElements()
Description copied from interface:IResultTree
Returns the root elements of the tree.- Specified by:
getElements
in 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(java.lang.Object element)
Description copied from interface:IResultTree
Returns whether the given element has children.- Specified by:
hasChildren
in interfaceIResultTree
- Parameters:
element
- the opaque object used to indicate which branch- Returns:
- true if this element has children
-
getChildren
public java.util.List<?> getChildren(java.lang.Object parent)
Description copied from interface:IResultTree
Returns the child elements of the given parent.- Specified by:
getChildren
in 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
-
-