|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.puppycrawl.tools.checkstyle.api.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,
java.lang.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)
AuditListener
addError
in interface AuditListener
aEvt
- the event detailsAuditListener
public void addException(AuditEvent aEvt, java.lang.Throwable aThrowable)
AuditListener
addException
in interface AuditListener
aEvt
- the event detailsaThrowable
- details of the exceptionAuditListener
public void auditStarted(AuditEvent aEvt)
AuditListener
auditStarted
in interface AuditListener
aEvt
- the event detailsAuditListener
public void fileStarted(AuditEvent aEvt)
AuditListener
fileStarted
in interface AuditListener
aEvt
- the event detailsAuditListener
public void auditFinished(AuditEvent aEvt)
AuditListener
auditFinished
in interface AuditListener
aEvt
- the event detailsAuditListener
public void fileFinished(AuditEvent aEvt)
AuditListener
fileFinished
in interface AuditListener
aEvt
- the event detailsAuditListener
public int getCount()
|
Back to the Checkstyle Home Page | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |