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.
beginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getDefaultTokens, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens, visitToken |
getId, getMessageBundle, getSeverity, getSeverityLevel, log, log, log, log, log, log, log, log, log, log, log, setId, 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.
- true if the IDENT subnode of aAST should be checked against
the format regexp.