Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.puppycrawl.tools.checkstyle.checks
Class FileSetCheckLifecycleTest.TestFileSetCheck  view FileSetCheckLifecycleTest.TestFileSetCheck download FileSetCheckLifecycleTest.TestFileSetCheck.java

java.lang.Object
  extended bycom.puppycrawl.tools.checkstyle.api.AutomaticBean
      extended bycom.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
          extended bycom.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck
              extended bycom.puppycrawl.tools.checkstyle.checks.FileSetCheckLifecycleTest.TestFileSetCheck
All Implemented Interfaces:
com.puppycrawl.tools.checkstyle.api.Configurable, com.puppycrawl.tools.checkstyle.api.Contextualizable, com.puppycrawl.tools.checkstyle.api.FileSetCheck
Enclosing class:
FileSetCheckLifecycleTest

public static class FileSetCheckLifecycleTest.TestFileSetCheck
extends com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck


Field Summary
private static boolean destroyed
           
 
Fields inherited from class com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck
 
Fields inherited from class com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
 
Fields inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean
 
Constructor Summary
FileSetCheckLifecycleTest.TestFileSetCheck()
           
 
Method Summary
 void destroy()
          Cleans up the object.
static boolean isDestroyed()
           
 void process(java.io.File[] aFiles)
          Processes a set of files and fires errors to the MessageDispatcher.
 
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck
filter, fireErrors, getMessageCollector, getMessageDispatcher, log, log, setFileExtensions, setMessageDispatcher
 
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
getMessageBundle, getSeverity, getSeverityLevel, log, log, log, log, log, log, setSeverity
 
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
 
Methods inherited from interface com.puppycrawl.tools.checkstyle.api.Configurable
configure
 
Methods inherited from interface com.puppycrawl.tools.checkstyle.api.Contextualizable
contextualize
 

Field Detail

destroyed

private static boolean destroyed
Constructor Detail

FileSetCheckLifecycleTest.TestFileSetCheck

public FileSetCheckLifecycleTest.TestFileSetCheck()
Method Detail

destroy

public void destroy()
Description copied from interface: com.puppycrawl.tools.checkstyle.api.FileSetCheck
Cleans up the object.


isDestroyed

public static boolean isDestroyed()

process

public void process(java.io.File[] aFiles)
Description copied from interface: com.puppycrawl.tools.checkstyle.api.FileSetCheck
Processes a set of files and fires errors to the MessageDispatcher. The file set to process might contain files that are not interesting to the FileSetCheck. Such files should be ignored, no error message should be fired for them. For example a FileSetCheck that checks java files should ignore html or properties files. Once processiong is done, it is highly recommended to call for the destroy method to close and remove the listeners.