org.apache.maven.plugin.checkstyle
Class CheckstyleReportListener
java.lang.Object
com.puppycrawl.tools.checkstyle.api.AutomaticBean
org.apache.maven.plugin.checkstyle.CheckstyleReportListener
- All Implemented Interfaces:
- com.puppycrawl.tools.checkstyle.api.AuditListener, com.puppycrawl.tools.checkstyle.api.Configurable, com.puppycrawl.tools.checkstyle.api.Contextualizable, EventListener
public class CheckstyleReportListener
- extends com.puppycrawl.tools.checkstyle.api.AutomaticBean
- implements com.puppycrawl.tools.checkstyle.api.AuditListener
Listener in charge of receiving events from the Checker.
- Version:
- $Id: CheckstyleReportListener.html 816658 2012-05-08 13:56:19Z hboutemy $
- Author:
- Emmanuel Venisse, Vincent Siveton
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 |
CheckstyleReportListener
public CheckstyleReportListener(File sourceDirectory)
- Parameters:
sourceDirectory
- assume that is sourceDirectory
is a not null directory and exists
CheckstyleReportListener
public CheckstyleReportListener(File sourceDirectory,
com.puppycrawl.tools.checkstyle.api.Configuration configuration)
- Parameters:
sourceDirectory
- assume that is sourceDirectory
is a not null directory and existsconfiguration
- checkstyle configuration- Since:
- 2.5
addSourceDirectory
public void addSourceDirectory(File sourceDirectory)
- Parameters:
sourceDirectory
- assume that is sourceDirectory
is a not null directory and exists
setSeverityLevelFilter
public void setSeverityLevelFilter(com.puppycrawl.tools.checkstyle.api.SeverityLevel severityLevel)
- Parameters:
severityLevel
-
getSeverityLevelFilter
public com.puppycrawl.tools.checkstyle.api.SeverityLevel getSeverityLevelFilter()
- Returns:
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)
-
- Specified by:
addError
in interface com.puppycrawl.tools.checkstyle.api.AuditListener
addException
public void addException(com.puppycrawl.tools.checkstyle.api.AuditEvent event,
Throwable throwable)
-
- Specified by:
addException
in interface com.puppycrawl.tools.checkstyle.api.AuditListener
getResults
public CheckstyleResults getResults()
- Returns:
setResults
public void setResults(CheckstyleResults results)
- Parameters:
results
-
getCheckstyleConfiguration
public com.puppycrawl.tools.checkstyle.api.Configuration getCheckstyleConfiguration()
- Since:
- 2.5
setCheckstyleConfiguration
public void setCheckstyleConfiguration(com.puppycrawl.tools.checkstyle.api.Configuration checkstyleConfiguration)
- Since:
- 2.5
Copyright © 2005-2010 The Apache Software Foundation. All Rights Reserved.