Package org.eclipse.mat.query.results
Class CompositeResult
java.lang.Object
org.eclipse.mat.query.results.CompositeResult
- All Implemented Interfaces:
IResult
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add one more result with the given namevoid
Add one more resultboolean
asHtml()
Whether to display the results as HTML.getName()
Get the name of this whole report.Get a list of the sub-resultsGet the metadata (none).Deprecated.A combined statusboolean
isEmpty()
See if there are sub-resultsvoid
setAsHtml
(boolean asHtml) Change the HTML setting.void
Set the name of this whole report.void
setStatus
(ITestResult.Status status) Set the combined status
-
Constructor Details
-
CompositeResult
Build a result out of several others- Parameters:
results
- a list of results
-
-
Method Details
-
getResultMetaData
Get the metadata (none).- Specified by:
getResultMetaData
in interfaceIResult
- Returns:
- null
-
getResults
Deprecated.UsegetResultEntries()
instead- Returns:
- the multiple results from a
CompositeResult
-
getResultEntries
Get a list of the sub-results- Returns:
- an unmodifiable list
-
isEmpty
public boolean isEmpty()See if there are sub-results- Returns:
- if no sub-results
-
addResult
Add one more result- Parameters:
result
- the sub-result
-
addResult
Add one more result with the given name- Parameters:
name
- the nameresult
- the sub-result
-
getStatus
A combined status- Returns:
- the status
-
setStatus
Set the combined status- Parameters:
status
- the new status
-
asHtml
public boolean asHtml()Whether to display the results as HTML.- Returns:
- true if to be HTML.
-
setAsHtml
public void setAsHtml(boolean asHtml) Change the HTML setting.- Parameters:
asHtml
- true if HTML required
-
getName
Get the name of this whole report.- Returns:
- the name of the report
-
setName
Set the name of this whole report.- Parameters:
name
- the name of the report
-
getResultEntries()
instead