Package org.eclipse.mat.report
Interface IOutputter.Context
-
- Enclosing interface:
- IOutputter
public static interface IOutputter.Context
Holds information which controls how to format a report.- No Implement:
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
addContextResult(String name, IResult result)
Add aIResult
from aDetailResultProvider
to the report.String
addIcon(URL icon)
Get string to represent an iconString
getId()
int
getLimit()
The limit on the number of rows to generate in the report from the result.File
getOutputDirectory()
Where files for the report can be generated.String
getPathToRoot()
IQueryContext
getQueryContext()
The query context for the result.boolean
hasLimit()
Whether there is a limit on the number of rows to generate.boolean
isColumnVisible(int columnIndex)
Whether a column of the result should be displayed in the report.boolean
isTotalsRowVisible()
Whether to display a totals row from the result in the report.String
param(String key)
Get the value of a parameter fromParams
controlling generation of a report.String
param(String key, String defaultValue)
Get the value of a parameter fromParams
controlling generation of a report.
-
-
-
Method Detail
-
getId
String getId()
-
getQueryContext
IQueryContext getQueryContext()
The query context for the result. Could be used to convert object identifiers to addresses.- Returns:
- the query context
-
getOutputDirectory
File getOutputDirectory()
Where files for the report can be generated.- Returns:
- the directory
-
getPathToRoot
String getPathToRoot()
-
addIcon
String addIcon(URL icon)
Get string to represent an icon- Parameters:
icon
- where the icon can be found- Returns:
- a string which can be used for the icon
-
addContextResult
String addContextResult(String name, IResult result)
Add aIResult
from aDetailResultProvider
to the report.- Parameters:
name
-result
-- Returns:
- a String which can be used by the IOutputter to identify the formatted result
-
hasLimit
boolean hasLimit()
Whether there is a limit on the number of rows to generate.- Returns:
- true if there is a limit
-
getLimit
int getLimit()
The limit on the number of rows to generate in the report from the result.- Returns:
- number of rows
-
isColumnVisible
boolean isColumnVisible(int columnIndex)
Whether a column of the result should be displayed in the report.- Parameters:
columnIndex
-- Returns:
- true if column should be displayed
-
isTotalsRowVisible
boolean isTotalsRowVisible()
Whether to display a totals row from the result in the report.- Returns:
- true if the totals row should be displayed
-
param
String param(String key)
Get the value of a parameter fromParams
controlling generation of a report.- Parameters:
key
-- Returns:
- the value or null
-
-