com.puppycrawl.tools.checkstyle.checks.naming

Class AbstractNameCheck

public abstract class AbstractNameCheck extends AbstractFormatCheck

Abstract class for checking that names conform to a specified format.

Version: 1.0

Author: Rick Giles

Constructor Summary
AbstractNameCheck(String aFormat)
Creates a new AbstractNameCheck instance.
Method Summary
protected booleanmustCheckName(DetailAST aAST)
Decides whether the name of an AST should be checked against the format regexp.
voidvisitToken(DetailAST aAST)

Constructor Detail

AbstractNameCheck

public AbstractNameCheck(String aFormat)
Creates a new AbstractNameCheck instance.

Parameters: aFormat format to check with

Method Detail

mustCheckName

protected boolean mustCheckName(DetailAST aAST)
Decides whether the name of an AST should be checked against the format regexp.

Parameters: aAST the AST to check.

Returns: true if the IDENT subnode of aAST should be checked against the format regexp.

visitToken

public void visitToken(DetailAST aAST)
{@inheritDoc }