public final class TreeWalker extends AbstractFileSetCheck
DEFAULT_ERROR_SCORE, DEFAULT_INFO_SCORE, DEFAULT_WARNING_SCORE, mScoring, mViolationSize
コンストラクタと説明 |
---|
TreeWalker()
Creates a new
TreeWalker instance. |
修飾子とタイプ | メソッドと説明 |
---|---|
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.
|
static DetailAST |
parse(FileContents aContents)
Static helper method to parses a Java source file.
|
protected void |
processFiltered(File aFile,
List<String> aLines)
Called to process a file that matches the specified file extensions.
|
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)
Called by configure() for every child of this component's Configuration.
|
beginProcessing, finishProcessing, fireErrors, getMessageCollector, getMessageDispatcher, init, log, log, process, setFileExtensions, setMessageDispatcher
calculateScore, getCustomMessages, getErrorScore, getId, getInfoScore, getMessageBundle, getScore, getScoring, getSeverity, getSeverityLevel, getWarningScore, log, setErrorScore, setId, setInfoScore, setScore, setScoring, setSeverity, setWarningScore
configure, contextualize, getConfiguration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
configure
contextualize
public void setTabWidth(int aTabWidth)
aTabWidth
- the distance between tab stopspublic void setCacheFile(String aFileName)
aFileName
- the cache filepublic void setClassLoader(ClassLoader aClassLoader)
aClassLoader
- class loader to resolve classes with.public void setModuleFactory(ModuleFactory aModuleFactory)
aModuleFactory
- the factorypublic void finishLocalSetup()
AutomaticBean
The default implementation does nothing.
finishLocalSetup
クラス内 AutomaticBean
public void setupChild(Configuration aChildConf) throws CheckstyleException
AutomaticBean
The default implementation does nothing.
setupChild
クラス内 AutomaticBean
aChildConf
- a child of this component's ConfigurationCheckstyleException
- if there is a configuration error.Configuration.getChildren()
protected void processFiltered(File aFile, List<String> aLines)
AbstractFileSetCheck
processFiltered
クラス内 AbstractFileSetCheck
aFile
- the file to be processedaLines
- an immutable list of the contents of the file.public static DetailAST parse(FileContents aContents) throws antlr.RecognitionException, antlr.TokenStreamException
aContents
- contains the contents of the fileantlr.TokenStreamException
- if lexing failedantlr.RecognitionException
- if parsing failedpublic void destroy()
AbstractFileSetCheck
destroy
インタフェース内 FileSetCheck
destroy
クラス内 AbstractFileSetCheck
Copyright © 2001-2013. All Rights Reserved.