public class SimpleDiagCollector extends java.lang.Object implements DiagCollector
DiagCollector used for general purpose tools.| Constructor and Description |
|---|
SimpleDiagCollector() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDiag(Diag diag)
Adds a diagnosis.
|
java.util.List<Diag> |
getDiags()
Returns a collection of diagnostics in the order they were added.
|
int |
getErrorCount()
Returns the number of diagnosed proper errors.
|
java.util.List<Diag> |
getErrors() |
boolean |
hasErrors()
Returns true if there are any diagnosed proper errors; false otherwise.
|
java.lang.String |
toString() |
public void addDiag(Diag diag)
DiagCollectoraddDiag in interface DiagCollectorpublic int getErrorCount()
DiagCollectorgetErrorCount in interface DiagCollectorpublic boolean hasErrors()
DiagCollectorhasErrors in interface DiagCollectorpublic java.util.List<Diag> getDiags()
DiagCollectorgetDiags in interface DiagCollectorpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.List<Diag> getErrors()