com.puppycrawl.tools.checkstyle.api
public final class SeverityLevelCounter extends Object implements AuditListener
AuditEvents
of a given severity have been generated.
| Constructor Summary | |
|---|---|
| SeverityLevelCounter(SeverityLevel aLevel)
Creates a new counter. | |
| Method Summary | |
|---|---|
| void | addError(AuditEvent aEvt) |
| void | addException(AuditEvent aEvt, Throwable aThrowable) |
| void | auditFinished(AuditEvent aEvt) |
| void | auditStarted(AuditEvent aEvt) |
| void | fileFinished(AuditEvent aEvt) |
| void | fileStarted(AuditEvent aEvt) |
| int | getCount()
Returns the number of counted events since audit started. |
Parameters: aLevel the severity level events need to have, must be non-null.
Returns: the number of counted events since audit started.