public class ClassTypeParameterNameCheck extends AbstractTypeParameterNameCheck
Checks that class type parameter names conform to a format specified
by the format property. The format is a
regular expression and defaults to
^[A-Z]$.
An example of how to configure the check is:
<module name="ClassTypeParameterName"/>
An example of how to configure the check for names that are only a single letter is
<module name="ClassTypeParameterName">
<property name="format" value="^[a-zA-Z]$"/>
</module>
| Constructor and Description |
|---|
ClassTypeParameterNameCheck()
Creates a new
ClassTypeParameterNameCheck instance. |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getLocation()
This method must be overriden to specify the
location of the type parameter to check.
|
getDefaultTokens, init, mustCheckNamevisitTokengetFormat, getRegexp, setCompileFlags, setFormatbeginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokensgetCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverityconfigure, contextualize, finishLocalSetup, getConfiguration, setupChildpublic ClassTypeParameterNameCheck()
ClassTypeParameterNameCheck instance.protected final int getLocation()
AbstractTypeParameterNameCheckgetLocation in class AbstractTypeParameterNameCheck TokenTypes.CLASS_DEF
or TokenTypes.METHOD_DEF Copyright © 2001-2012. All Rights Reserved.