com.puppycrawl.tools.checkstyle.checks.naming
Class AbstractNameCheck
- Configurable, Contextualizable
public abstract class AbstractNameCheck
Abstract class for checking that names conform to a specified format.
Version:
- Rick Giles
beginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getDefaultTokens, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens, visitToken |
getMessageBundle, getSeverity, getSeverityLevel, log, log, log, log, log, log, log, log, log, log, log, setSeverity |
AbstractNameCheck
public AbstractNameCheck(String aFormat)
Creates a new AbstractNameCheck instance.
aFormat - format to check with
mustCheckName
protected boolean mustCheckName(DetailAST aAST)
Decides whether the name of an AST should be checked against
the format regexp.
aAST - the AST to check.
- true if the IDENT subnode of aAST should be checked against
the format regexp.