|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.mat.query.results.CompositeResult
public final class CompositeResult
Return multiple result types.
If it is returned from an IQuery without setAsHtml(boolean)
being set to true
then the Memory Analyzer graphical user interface displays each result as a separate tab.
If setAsHtml(boolean)
has been set true or
if the CompositeResult is incorporated into an HTML report then each result appears
as a separate HTML section.
Nested Class Summary | |
---|---|
static class |
CompositeResult.Entry
An individual sub-result |
Constructor Summary | |
---|---|
CompositeResult(IResult... results)
Build a result out of several others |
Method Summary | |
---|---|
void |
addResult(IResult result)
Add one more result |
void |
addResult(java.lang.String name,
IResult result)
Add one more result with the given name |
boolean |
asHtml()
Whether to display the results as HTML. |
java.lang.String |
getName()
Get the name of this whole report. |
java.util.List<CompositeResult.Entry> |
getResultEntries()
Get a list of the sub-results |
ResultMetaData |
getResultMetaData()
Get the metadata (none). |
java.util.List<IResult> |
getResults()
Deprecated. Use getResultEntries() instead |
ITestResult.Status |
getStatus()
A combined status |
boolean |
isEmpty()
See if there are sub-results |
void |
setAsHtml(boolean asHtml)
Change the HTML setting. |
void |
setName(java.lang.String name)
Set the name of this whole report. |
void |
setStatus(ITestResult.Status status)
Set the combined status |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompositeResult(IResult... results)
results
- Method Detail |
---|
public ResultMetaData getResultMetaData()
getResultMetaData
in interface IResult
@Deprecated public java.util.List<IResult> getResults()
getResultEntries()
instead
public java.util.List<CompositeResult.Entry> getResultEntries()
public boolean isEmpty()
public void addResult(IResult result)
result
- the sub-resultpublic void addResult(java.lang.String name, IResult result)
name
- the nameresult
- the sub-resultpublic ITestResult.Status getStatus()
public void setStatus(ITestResult.Status status)
status
- public boolean asHtml()
public void setAsHtml(boolean asHtml)
asHtml
- true if HTML requiredpublic java.lang.String getName()
public void setName(java.lang.String name)
name
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |