|
|||||||||
| Home >> All >> com >> mycompany >> [ listeners overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.mycompany.listeners
Class VerboseListener

java.lang.Objectcom.puppycrawl.tools.checkstyle.api.AutomaticBean
com.mycompany.listeners.VerboseListener
- All Implemented Interfaces:
- com.puppycrawl.tools.checkstyle.api.AuditListener, com.puppycrawl.tools.checkstyle.api.Configurable, com.puppycrawl.tools.checkstyle.api.Contextualizable, java.util.EventListener
- public class VerboseListener
- extends com.puppycrawl.tools.checkstyle.api.AutomaticBean
- implements com.puppycrawl.tools.checkstyle.api.AuditListener
- extends com.puppycrawl.tools.checkstyle.api.AutomaticBean
An AuditListener that reports every event to an output stream.
| Field Summary | |
private boolean |
mCloseOut
close output stream |
private int |
mErrors
number of errors and exceptions in the audit of one file |
private int |
mTotalErrors
total number of errors and exceptions |
private java.io.PrintWriter |
mWriter
where to write messages |
| Fields inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean |
|
| Constructor Summary | |
VerboseListener()
|
|
| Method Summary | |
void |
addError(com.puppycrawl.tools.checkstyle.api.AuditEvent aEvt)
Notify that an audit error was discovered on a specific file. |
void |
addException(com.puppycrawl.tools.checkstyle.api.AuditEvent aEvt,
java.lang.Throwable aThrowable)
Notify that an exception happened while performing audit. |
void |
auditFinished(com.puppycrawl.tools.checkstyle.api.AuditEvent aEvt)
Notify that the audit is finished. |
void |
auditStarted(com.puppycrawl.tools.checkstyle.api.AuditEvent aEvt)
Notify that the audit is about to start. |
void |
fileFinished(com.puppycrawl.tools.checkstyle.api.AuditEvent aEvt)
Notify that audit is finished on a specific file. |
void |
fileStarted(com.puppycrawl.tools.checkstyle.api.AuditEvent aEvt)
Notify that audit is about to start on a specific file. |
private void |
printEvent(com.puppycrawl.tools.checkstyle.api.AuditEvent aEvt)
Prints event information to standard output. |
void |
setFile(java.lang.String aFileName)
Sets the output stream to a file. |
| Methods inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean |
configure, contextualize, finishLocalSetup, getConfiguration, setupChild |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
mWriter
private java.io.PrintWriter mWriter
- where to write messages
mCloseOut
private boolean mCloseOut
- close output stream
mTotalErrors
private int mTotalErrors
- total number of errors and exceptions
mErrors
private int mErrors
- number of errors and exceptions in the audit of one file
| Constructor Detail |
VerboseListener
public VerboseListener()
| Method Detail |
setFile
public void setFile(java.lang.String aFileName) throws java.io.FileNotFoundException
- Sets the output stream to a file.
auditStarted
public void auditStarted(com.puppycrawl.tools.checkstyle.api.AuditEvent aEvt)
- Description copied from interface:
com.puppycrawl.tools.checkstyle.api.AuditListener - Notify that the audit is about to start.
- Specified by:
auditStartedin interfacecom.puppycrawl.tools.checkstyle.api.AuditListener
auditFinished
public void auditFinished(com.puppycrawl.tools.checkstyle.api.AuditEvent aEvt)
- Description copied from interface:
com.puppycrawl.tools.checkstyle.api.AuditListener - Notify that the audit is finished.
- Specified by:
auditFinishedin interfacecom.puppycrawl.tools.checkstyle.api.AuditListener
fileStarted
public void fileStarted(com.puppycrawl.tools.checkstyle.api.AuditEvent aEvt)
- Description copied from interface:
com.puppycrawl.tools.checkstyle.api.AuditListener - Notify that audit is about to start on a specific file.
- Specified by:
fileStartedin interfacecom.puppycrawl.tools.checkstyle.api.AuditListener
fileFinished
public void fileFinished(com.puppycrawl.tools.checkstyle.api.AuditEvent aEvt)
- Description copied from interface:
com.puppycrawl.tools.checkstyle.api.AuditListener - Notify that audit is finished on a specific file.
- Specified by:
fileFinishedin interfacecom.puppycrawl.tools.checkstyle.api.AuditListener
addError
public void addError(com.puppycrawl.tools.checkstyle.api.AuditEvent aEvt)
- Description copied from interface:
com.puppycrawl.tools.checkstyle.api.AuditListener - Notify that an audit error was discovered on a specific file.
- Specified by:
addErrorin interfacecom.puppycrawl.tools.checkstyle.api.AuditListener
addException
public void addException(com.puppycrawl.tools.checkstyle.api.AuditEvent aEvt, java.lang.Throwable aThrowable)
- Description copied from interface:
com.puppycrawl.tools.checkstyle.api.AuditListener - Notify that an exception happened while performing audit.
- Specified by:
addExceptionin interfacecom.puppycrawl.tools.checkstyle.api.AuditListener
printEvent
private void printEvent(com.puppycrawl.tools.checkstyle.api.AuditEvent aEvt)
- Prints event information to standard output.
|
|||||||||
| Home >> All >> com >> mycompany >> [ listeners overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC