public class TypeNameCheck extends AbstractAccessControlNameCheck
Checks that type names conform to a format specified
by the format property. The format is a
regular expression and defaults to
^[A-Z][a-zA-Z0-9]*$.
An example of how to configure the check is:
<module name="TypeName"/>
An example of how to configure the check for names that begin with a lower case letter, followed by letters, digits, and underscores is:
<module name="TypeName">
<property name="format" value="^[a-z](_?[a-zA-Z0-9]+)*$"/>
</module>
| Constructor and Description |
|---|
TypeNameCheck()
Creates a new
TypeNameCheck instance. |
| Modifier and Type | Method and Description |
|---|---|
int[] |
getDefaultTokens()
Returns the default token a check is interested in.
|
getApplyToPackage, getApplyToPrivate, getApplyToProtected, getApplyToPublic, mustCheckName, setApplyToPackage, setApplyToPrivate, setApplyToProtected, setApplyToPublic, shouldCheckInScopevisitTokengetFormat, getRegexp, setCompileFlags, setFormatbeginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokensgetCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverityconfigure, contextualize, finishLocalSetup, getConfiguration, setupChildpublic int[] getDefaultTokens()
getDefaultTokens in class CheckTokenTypesCopyright © 2001-2012. All Rights Reserved.