Package org.eclipse.mat.report
Class QuerySpec
- java.lang.Object
-
- org.eclipse.mat.report.Spec
-
- org.eclipse.mat.report.QuerySpec
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCommand()Get the command to be executed by Memory Analyzer when the user clicks on a link in the report.IResultgetResult()Gets the body of this section which is the result of a query.voidmerge(Spec other)Merge with another Spec.voidsetCommand(String query)Sets a Memory Analyzer command to be executed when the user clicks on an icon in the report.voidsetResult(IResult result)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 Detail
-
QuerySpec
public QuerySpec()
Create a QuerySpec with no title
-
QuerySpec
public QuerySpec(String name)
Create a QuerySpec with a title.- Parameters:
name- the title
-
-
Method Detail
-
getCommand
public String getCommand()
Get the command to be executed by Memory Analyzer when the user clicks on a link in the report.- Returns:
- the command
-
setCommand
public void setCommand(String query)
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
public IResult getResult()
Gets the body of this section which is the result of a query.- Returns:
- the body of the section
-
setResult
public void setResult(IResult result)
Sets the body of this section to the result of a query.- Parameters:
result- the result to be added to the report
-
-