Class GrajaListener

  • All Implemented Interfaces:
    com.puppycrawl.tools.checkstyle.api.AuditListener, EventListener

    public class GrajaListener
    extends Object
    implements com.puppycrawl.tools.checkstyle.api.AuditListener
    • Method Detail

      • auditStarted

        public void auditStarted​(com.puppycrawl.tools.checkstyle.api.AuditEvent event)
        Specified by:
        auditStarted in interface com.puppycrawl.tools.checkstyle.api.AuditListener
      • auditFinished

        public void auditFinished​(com.puppycrawl.tools.checkstyle.api.AuditEvent event)
        Specified by:
        auditFinished in interface com.puppycrawl.tools.checkstyle.api.AuditListener
      • fileStarted

        public void fileStarted​(com.puppycrawl.tools.checkstyle.api.AuditEvent event)
        Specified by:
        fileStarted in interface com.puppycrawl.tools.checkstyle.api.AuditListener
      • fileFinished

        public void fileFinished​(com.puppycrawl.tools.checkstyle.api.AuditEvent event)
        Specified by:
        fileFinished in interface com.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:
        addError in interface com.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

        public void addException​(com.puppycrawl.tools.checkstyle.api.AuditEvent event,
                                 Throwable throwable)
        Specified by:
        addException in interface com.puppycrawl.tools.checkstyle.api.AuditListener