public final class TreeWalker extends AbstractFileSetCheck implements ExternalResourceHolder
AutomaticBean.OutputStreamOptions| Constructor and Description |
|---|
TreeWalker()
Creates a new
TreeWalker instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Cleans up the object.
|
void |
finishLocalSetup()
Provides a hook to finish the part of this component's setup that
was not handled by the bean introspection.
|
Set<String> |
getExternalResourceLocations()
Returns a set of external configuration resource locations which are used by the module.
|
protected void |
processFiltered(File file,
FileText fileText)
Called to process a file that matches the specified file extensions.
|
void |
setModuleFactory(ModuleFactory moduleFactory)
Sets the module factory for creating child modules (Checks).
|
void |
setupChild(Configuration childConf)
Called by configure() for every child of this component's Configuration.
|
addMessages, beginProcessing, finishProcessing, fireErrors, getFileContents, getFileExtensions, getMessageDispatcher, getMessages, getTabWidth, init, log, log, process, setFileContents, setFileExtensions, setMessageDispatcher, setTabWidthgetCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, setId, setSeverityconfigure, contextualize, getConfigurationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconfigurecontextualizepublic TreeWalker()
TreeWalker instance.public void setModuleFactory(ModuleFactory moduleFactory)
moduleFactory - the factorypublic void finishLocalSetup()
AutomaticBeanThe default implementation does nothing.
finishLocalSetup in class AbstractViolationReporterpublic void setupChild(Configuration childConf) throws CheckstyleException
The default implementation throws CheckstyleException if
childConf is null because it doesn't support children. It
must be overridden to validate and support children that are wanted.
setupChild in class AutomaticBeanchildConf - a child of this component's ConfigurationCheckstyleException - if there is a configuration error.Configuration.getChildren()protected void processFiltered(File file, FileText fileText) throws CheckstyleException
AbstractFileSetCheckprocessFiltered in class AbstractFileSetCheckfile - the file to be processedfileText - the contents of the file.CheckstyleException - if error condition within Checkstyle occurs.public void destroy()
FileSetCheckdestroy in interface FileSetCheckdestroy in class AbstractFileSetCheckpublic Set<String> getExternalResourceLocations()
ExternalResourceHolderNullPointerException in Checker.
Such behaviour will signal that your module (check or filter) is designed incorrectly.
It make sense to return an empty set from 'getExternalResourceLocations()'
only for composite modules like TreeWalker.getExternalResourceLocations in interface ExternalResourceHolderCopyright © 2001–2020. All rights reserved.