Package org.eclipse.mat.inspections.osgi
Class BundleRegistryQuery.ExtensionTreeResult
- java.lang.Object
-
- org.eclipse.mat.inspections.osgi.BundleRegistryQuery.BundleTreeResult
-
- org.eclipse.mat.inspections.osgi.BundleRegistryQuery.ExtensionTreeResult
-
- All Implemented Interfaces:
IIconProvider,IResult,IResultTree,IStructuredResult
- Enclosing class:
- BundleRegistryQuery
public static class BundleRegistryQuery.ExtensionTreeResult extends BundleRegistryQuery.BundleTreeResult
-
-
Field Summary
-
Fields inherited from interface org.eclipse.mat.query.IIconProvider
EMPTY
-
-
Constructor Summary
Constructors Constructor Description ExtensionTreeResult(OSGiModel model)
-
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.Column[]getColumns()The columns of the tree or table.java.util.List<?>getElements()Returns the root elements of the tree.BundleRegistryQuery.GroupinggetGroupBy()booleanhasChildren(java.lang.Object element)Returns whether the given element has children.-
Methods inherited from class org.eclipse.mat.inspections.osgi.BundleRegistryQuery.BundleTreeResult
getColumnValue, getContext, getIcon, getModel, getResultMetaData
-
-
-
-
Constructor Detail
-
ExtensionTreeResult
public ExtensionTreeResult(OSGiModel model)
-
-
Method Detail
-
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- Overrides:
getChildrenin classBundleRegistryQuery.BundleTreeResult- 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
-
getElements
public java.util.List<?> getElements()
Description copied from interface:IResultTreeReturns the root elements of the tree.- Specified by:
getElementsin interfaceIResultTree- Overrides:
getElementsin classBundleRegistryQuery.BundleTreeResult- 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- Overrides:
hasChildrenin classBundleRegistryQuery.BundleTreeResult- Parameters:
element- the opaque object used to indicate which branch- Returns:
- true if this element has children
-
getGroupBy
public BundleRegistryQuery.Grouping getGroupBy()
- Overrides:
getGroupByin classBundleRegistryQuery.BundleTreeResult
-
getColumns
public Column[] getColumns()
Description copied from interface:IStructuredResultThe columns of the tree or table.- Specified by:
getColumnsin interfaceIStructuredResult- Overrides:
getColumnsin classBundleRegistryQuery.BundleTreeResult- Returns:
- an array of all the columns
-
-