Class CompareTablesQuery.ComparisonResultTree
- java.lang.Object
-
- org.eclipse.mat.internal.snapshot.inspections.CompareTablesQuery.TableComparisonResult
-
- org.eclipse.mat.internal.snapshot.inspections.CompareTablesQuery.ComparisonResultTree
-
- All Implemented Interfaces:
IIconProvider,IResult,IResultTree,IStructuredResult
- Enclosing class:
- CompareTablesQuery
public class CompareTablesQuery.ComparisonResultTree extends CompareTablesQuery.TableComparisonResult implements IResultTree
-
-
Field Summary
-
Fields inherited from interface org.eclipse.mat.query.IIconProvider
EMPTY
-
-
Constructor Summary
Constructors Constructor Description ComparisonResultTree(java.util.List<org.eclipse.mat.internal.snapshot.inspections.CompareTablesQuery.ComparedRow> rows, Column key, java.util.List<CompareTablesQuery.ComparedColumn> comparedColumns, CompareTablesQuery.Mode mode, CompareTablesQuery.Operation setOp)
-
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.booleanhasChildren(java.lang.Object element)Returns whether the given element has children.-
Methods inherited from class org.eclipse.mat.internal.snapshot.inspections.CompareTablesQuery.TableComparisonResult
getColumns, getColumnValue, getComparedColumns, getContext, getIcon, getMode, getOperation, getResultMetaData, setComparedColumns, setMode, setOperation, updateColumns
-
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
-
-
-
-
Constructor Detail
-
ComparisonResultTree
public ComparisonResultTree(java.util.List<org.eclipse.mat.internal.snapshot.inspections.CompareTablesQuery.ComparedRow> rows, Column key, java.util.List<CompareTablesQuery.ComparedColumn> comparedColumns, CompareTablesQuery.Mode mode, CompareTablesQuery.Operation setOp)
-
-
Method Detail
-
getElements
public java.util.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(java.lang.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 java.util.List<?> getChildren(java.lang.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
-
-