com.puppycrawl.tools.checkstyle
public final class TreeWalker extends AbstractFileSetCheck
Version: 1.0
Constructor Summary | |
---|---|
TreeWalker()
Creates a new TreeWalker instance. |
Method Summary | |
---|---|
void | destroy() |
void | finishLocalSetup() |
static DetailAST | parse(FileContents aContents)
Static helper method to parses a Java source file. |
void | process(File[] aFiles) {@inheritDoc} |
void | setCacheFile(String aFileName) |
void | setClassLoader(ClassLoader aClassLoader) |
void | setModuleFactory(ModuleFactory aModuleFactory)
Sets the module factory for creating child modules (Checks). |
void | setTabWidth(int aTabWidth) |
void | setupChild(Configuration aChildConf)
Instantiates, configures and registers a Check that is specified
in the provided configuration.
|
TreeWalker
instance.See Also: FileSetCheck
See Also: Configurable
Parameters: aContents contains the contents of the file
Returns: the root of the AST
Throws: TokenStreamException if lexing failed RecognitionException if parsing failed
Parameters: aFileName the cache file
Parameters: aClassLoader class loader to resolve classes with.
Parameters: aModuleFactory the factory
Parameters: aTabWidth the distance between tab stops