Constructor and Description |
---|
QuerySpec()
Create a QuerySpec with no title
|
QuerySpec(String name)
Create a QuerySpec with a title.
|
QuerySpec(String name,
IResult result)
Create a QuerySpec with a title and a result of executing a query.
|
Modifier and Type | Method and Description |
---|---|
String |
getCommand()
Get the command to be executed by Memory Analyzer when the user clicks on
a link in the report.
|
IResult |
getResult()
Gets the body of this section which is the result of a query.
|
void |
merge(Spec other)
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 |
setResult(IResult result)
Sets the body of this section to the result of a query.
|
getName, getParams, getResultMetaData, getTemplate, putAll, set, setName, setTemplate
public QuerySpec()
public QuerySpec(String name)
name
- the titlepublic String getCommand()
public void setCommand(String query)
query
- the command to be executedpublic IResult getResult()
public void setResult(IResult result)
result
- the result to be added to the report