public final class AbstractClassNameCheck extends AbstractFormatCheck
Ensures that the names of abstract classes conforming to some regular expression.
Rationale: Abstract classes are convenience base class implementations of interfaces, not types as such. As such they should be named to indicate this.
| Constructor and Description |
|---|
AbstractClassNameCheck()
Creates new instance of the check.
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
getDefaultTokens()
Returns the default token a check is interested in.
|
int[] |
getRequiredTokens()
The tokens that this check must be registered for.
|
void |
visitToken(DetailAST aAST)
Called to process a token.
|
getFormat, getRegexp, setCompileFlags, setFormatbeginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getFileContents, getLines, getTabWidth, getTokenNames, init, leaveToken, 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 AbstractClassNameCheck()
public int[] getDefaultTokens()
getDefaultTokens in class CheckTokenTypespublic int[] getRequiredTokens()
getRequiredTokens in class CheckTokenTypespublic void visitToken(DetailAST aAST)
visitToken in class CheckaAST - the token to process