Package org.eclipse.mat.report
Class QuerySpec
java.lang.Object
org.eclipse.mat.report.Spec
org.eclipse.mat.report.QuerySpec
- All Implemented Interfaces:
IResult
A container for a result of a query.
Allows a link for a command to be executed from the report.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the command to be executed by Memory Analyzer when the user clicks on a link in the report.Gets the body of this section which is the result of a query.void
Merge with another Spec.void
setCommand
(String query) Sets a Memory Analyzer command to be executed when the user clicks on an icon in the report.void
Sets the body of this section to the result of a query.Methods inherited from class org.eclipse.mat.report.Spec
getName, getParams, getResultMetaData, getTemplate, putAll, set, setName, setTemplate
-
Constructor Details
-
QuerySpec
public QuerySpec()Create a QuerySpec with no title -
QuerySpec
Create a QuerySpec with a title.- Parameters:
name
- the title
-
QuerySpec
Create a QuerySpec with a title and a result of executing a query.- Parameters:
name
- the titleresult
- the result of executing a query
-
-
Method Details
-
getCommand
Get the command to be executed by Memory Analyzer when the user clicks on a link in the report.- Returns:
- the command
-
setCommand
Sets a Memory Analyzer command to be executed when the user clicks on an icon in the report.- Parameters:
query
- the command to be executed
-
getResult
Gets the body of this section which is the result of a query.- Returns:
- the body of the section
-
setResult
Sets the body of this section to the result of a query.- Parameters:
result
- the result to be added to the report
-
merge
Description copied from class:Spec
Merge with another Spec. Combine the parameters and choose the other name if this has none.
-