Package de.hsh.graja.modules.checkstyle
Class GrajaListener
java.lang.Object
de.hsh.graja.modules.checkstyle.GrajaListener
- All Implemented Interfaces:
com.puppycrawl.tools.checkstyle.api.AuditListener,EventListener
public class GrajaListener
extends Object
implements com.puppycrawl.tools.checkstyle.api.AuditListener
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddError(com.puppycrawl.tools.checkstyle.api.AuditEvent event) Finds or adds a new SubResult for the checkname and adds the error message together with a code snippet to itvoidaddException(com.puppycrawl.tools.checkstyle.api.AuditEvent event, Throwable throwable) voidauditFinished(com.puppycrawl.tools.checkstyle.api.AuditEvent event) voidauditStarted(com.puppycrawl.tools.checkstyle.api.AuditEvent event) voidfileFinished(com.puppycrawl.tools.checkstyle.api.AuditEvent event) voidfileStarted(com.puppycrawl.tools.checkstyle.api.AuditEvent event) void
-
Method Details
-
auditStarted
public void auditStarted(com.puppycrawl.tools.checkstyle.api.AuditEvent event) - Specified by:
auditStartedin interfacecom.puppycrawl.tools.checkstyle.api.AuditListener
-
auditFinished
public void auditFinished(com.puppycrawl.tools.checkstyle.api.AuditEvent event) - Specified by:
auditFinishedin interfacecom.puppycrawl.tools.checkstyle.api.AuditListener
-
fileStarted
public void fileStarted(com.puppycrawl.tools.checkstyle.api.AuditEvent event) - Specified by:
fileStartedin interfacecom.puppycrawl.tools.checkstyle.api.AuditListener
-
fileFinished
public void fileFinished(com.puppycrawl.tools.checkstyle.api.AuditEvent event) - Specified by:
fileFinishedin interfacecom.puppycrawl.tools.checkstyle.api.AuditListener
-
addError
public void addError(com.puppycrawl.tools.checkstyle.api.AuditEvent event) Finds or adds a new SubResult for the checkname and adds the error message together with a code snippet to it- Specified by:
addErrorin interfacecom.puppycrawl.tools.checkstyle.api.AuditListener- Parameters:
event- contains specific information about the error, such as a line and col number, the name of the check and an error message
-
addException
- Specified by:
addExceptionin interfacecom.puppycrawl.tools.checkstyle.api.AuditListener
-
getResult
-
setResult
-