public abstract class DeclarationCollector extends Check
| Constructor and Description |
|---|
DeclarationCollector() |
| Modifier and Type | Method and Description |
|---|---|
void |
beginTree(DetailAST aRootAST)
Called before the starting to process a tree.
|
protected boolean |
isClassField(String aName)
Check if given name is a name for class field in current environment.
|
protected boolean |
isDeclared(String aName)
Check if given name is a name for declafred variable/parameter/member in
current environment.
|
void |
leaveToken(DetailAST aAST)
Called after all the child nodes have been process.
|
void |
visitToken(DetailAST aAST)
Called to process a token.
|
destroy, finishTree, getAcceptableTokens, getClassLoader, getDefaultTokens, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokensgetId, getMessageBundle, getSeverity, getSeverityLevel, log, log, log, log, log, log, log, log, log, setId, setSeverityconfigure, contextualize, finishLocalSetup, getConfiguration, setupChildpublic void beginTree(DetailAST aRootAST)
public void visitToken(DetailAST aAST)
visitToken in class CheckaAST - the token to processpublic void leaveToken(DetailAST aAST)
leaveToken in class CheckaAST - the token leavingprotected final boolean isDeclared(String aName)
aName - a name to checkprotected final boolean isClassField(String aName)
aName - a name to check