Package org.eclipse.mat.query
Class ContextDerivedData
- java.lang.Object
-
- org.eclipse.mat.query.ContextDerivedData
-
- Direct Known Subclasses:
RetainedSizeDerivedData
public abstract class ContextDerivedData extends Object
Synthetic data columns
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ContextDerivedData.DerivedCalculator
A way of actually doing the calculations.static class
ContextDerivedData.DerivedColumn
A column of data derived from the existing data.static class
ContextDerivedData.DerivedOperation
A way of calculating the column values.
-
Constructor Summary
Constructors Constructor Description ContextDerivedData()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Column
columnFor(ContextDerivedData.DerivedColumn derivedColumn, IResult result, ContextProvider provider)
Get a column ready to use, based on the derived columnabstract ContextDerivedData.DerivedColumn[]
getDerivedColumns()
Get all the derived columns for the current context (page) Do not modify the returned array.abstract String
labelFor(ContextDerivedData.DerivedColumn derivedColumn, ContextProvider provider)
Get the label for the extra columnContextDerivedData.DerivedColumn
lookup(ContextDerivedData.DerivedOperation operation)
Find the appropriate column for the requested operation
-
-
-
Method Detail
-
getDerivedColumns
public abstract ContextDerivedData.DerivedColumn[] getDerivedColumns()
Get all the derived columns for the current context (page) Do not modify the returned array.- Returns:
- an array of columns
-
labelFor
public abstract String labelFor(ContextDerivedData.DerivedColumn derivedColumn, ContextProvider provider)
Get the label for the extra column- Parameters:
derivedColumn
- the extra columnprovider
- how the column was generated- Returns:
- the label
-
columnFor
public abstract Column columnFor(ContextDerivedData.DerivedColumn derivedColumn, IResult result, ContextProvider provider)
Get a column ready to use, based on the derived column- Parameters:
derivedColumn
- the extra columnresult
- the original result to be enhancedprovider
- the provider of all the data- Returns:
- the column
-
lookup
public final ContextDerivedData.DerivedColumn lookup(ContextDerivedData.DerivedOperation operation)
Find the appropriate column for the requested operation- Parameters:
operation
- the operation to generate the column values- Returns:
- the column
-
-