public abstract class DeclarationCollector extends Check
Constructor and Description |
---|
DeclarationCollector() |
Modifier and Type | Method and Description |
---|---|
void |
beginTree(DetailAST rootAST)
Called before the starting to process a tree.
|
protected boolean |
isClassField(String name)
Check if given name is a name for class field in current environment.
|
protected boolean |
isClassMethod(String name)
Check if given name is a name for class method in current environment.
|
void |
visitToken(DetailAST ast)
Called to process a token.
|
destroy, finishTree, getAcceptableTokens, getClassLoader, getDefaultTokens, getFileContents, getLine, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, isCommentNodesRequired, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens
getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverity
configure, contextualize, finishLocalSetup, getConfiguration, setupChild
public DeclarationCollector()
public void beginTree(DetailAST rootAST)
Check
public void visitToken(DetailAST ast)
Check
visitToken
in class Check
ast
- the token to processprotected final boolean isClassField(String name)
name
- a name to checkprotected final boolean isClassMethod(String name)
name
- a name to checkCopyright © 2001–2015. All rights reserved.