Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
com.puppycrawl.tools.checkstyle.api.AutomaticBean
com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck
com.puppycrawl.tools.checkstyle.TreeWalker
public final class TreeWalker
extends AbstractFileSetCheck
Constructor Summary | |
|
Method Summary | |
void |
|
void | |
static DetailAST |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck | |
destroy , filter , fireErrors , getCharset , getMessageCollector , getMessageDispatcher , log , log , setCharset , setFileExtensions , setMessageDispatcher |
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter | |
getMessageBundle , getSeverity , getSeverityLevel , log , log , log , log , log , log , log , log , log , log , log , setSeverity |
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean | |
configure , contextualize , finishLocalSetup , getConfiguration , setupChild |
public void destroy()
- Specified by:
- destroy in interface FileSetCheck
- Overrides:
- destroy in interface AbstractFileSetCheck
- See Also:
FileSetCheck
public void finishLocalSetup()
- Overrides:
- finishLocalSetup in interface AutomaticBean
- See Also:
Configurable
public static DetailAST parse(FileContents aContents) throws RecognitionException, TokenStreamException
Static helper method to parses a Java source file.
- Parameters:
aContents
- contains the contents of the file
- Returns:
- the root of the AST
public void process(File[] aFiles)
- Specified by:
- process in interface FileSetCheck
- See Also:
FileSetCheck
public void setCacheFile(String aFileName)
- Parameters:
aFileName
- the cache file
public void setClassLoader(ClassLoader aClassLoader)
- Parameters:
aClassLoader
- class loader to resolve classes with.
public void setModuleFactory(ModuleFactory aModuleFactory)
Sets the module factory for creating child modules (Checks).
- Parameters:
aModuleFactory
- the factory
public void setTabWidth(int aTabWidth)
- Parameters:
aTabWidth
- the distance between tab stops
public void setupChild(Configuration aChildConf) throws CheckstyleException
Instantiates, configures and registers a Check that is specified in the provided configuration.
- Overrides:
- setupChild in interface AutomaticBean
- See Also:
AutomaticBean
Back to the Checkstyle Home Page |