com.puppycrawl.tools.checkstyle.api
public final class SeverityLevelCounter extends Object implements AuditListener
Constructor Summary | |
---|---|
SeverityLevelCounter(SeverityLevel aLevel)
Creates a new counter. |
Method Summary | |
---|---|
void | addError(AuditEvent aEvt) {@inheritDoc} |
void | addException(AuditEvent aEvt, Throwable aThrowable) {@inheritDoc} |
void | auditFinished(AuditEvent aEvt) {@inheritDoc} |
void | auditStarted(AuditEvent aEvt) {@inheritDoc} |
void | fileFinished(AuditEvent aEvt) {@inheritDoc} |
void | fileStarted(AuditEvent aEvt) {@inheritDoc} |
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.