|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.puppycrawl.tools.checkstyle.api.SeverityLevelCounter
public final class SeverityLevelCounter
An audit listener that counts how many AuditEvents
of a given severity have been generated.
| Constructor Summary | |
|---|---|
SeverityLevelCounter(SeverityLevel aLevel)
Creates a new counter. |
|
| Method Summary | |
|---|---|
void |
addError(AuditEvent aEvt)
Notify that an audit error was discovered on a specific file. |
void |
addException(AuditEvent aEvt,
Throwable aThrowable)
Notify that an exception happened while performing audit. |
void |
auditFinished(AuditEvent aEvt)
Notify that the audit is finished. |
void |
auditStarted(AuditEvent aEvt)
Notify that the audit is about to start. |
void |
fileFinished(AuditEvent aEvt)
Notify that audit is finished on a specific file. |
void |
fileStarted(AuditEvent aEvt)
Notify that audit is about to start on a specific file. |
int |
getCount()
Returns the number of counted events since audit started. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SeverityLevelCounter(SeverityLevel aLevel)
aLevel - the severity level events need to have, must be non-null.| Method Detail |
|---|
public void addError(AuditEvent aEvt)
addError in interface AuditListeneraEvt - the event details
public void addException(AuditEvent aEvt,
Throwable aThrowable)
addException in interface AuditListeneraEvt - the event detailsaThrowable - details of the exceptionpublic void auditStarted(AuditEvent aEvt)
auditStarted in interface AuditListeneraEvt - the event detailspublic void fileStarted(AuditEvent aEvt)
fileStarted in interface AuditListeneraEvt - the event detailspublic void auditFinished(AuditEvent aEvt)
auditFinished in interface AuditListeneraEvt - the event detailspublic void fileFinished(AuditEvent aEvt)
fileFinished in interface AuditListeneraEvt - the event detailspublic int getCount()
|
Back to the Checkstyle Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||