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, setTokens
getId, getMessageBundle, getSeverity, getSeverityLevel, log, log, log, log, log, log, log, log, log, setId, setSeverity
configure, contextualize, finishLocalSetup, getConfiguration, setupChild
public void beginTree(DetailAST aRootAST)
public void visitToken(DetailAST aAST)
visitToken
in class Check
aAST
- the token to processpublic void leaveToken(DetailAST aAST)
leaveToken
in class Check
aAST
- the token leavingprotected final boolean isDeclared(String aName)
aName
- a name to checkprotected final boolean isClassField(String aName)
aName
- a name to check