public class MethodTypeParameterNameCheck 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="MethodTypeParameterName"/>
An example of how to configure the check for names that are only a single letter is
<module name="MethodTypeParameterName"> <property name="format" value="^[a-zA-Z]$"/> </module>
DEFAULT_ERROR_SCORE, DEFAULT_INFO_SCORE, DEFAULT_WARNING_SCORE, mScoring, mViolationSize
コンストラクタと説明 |
---|
MethodTypeParameterNameCheck()
Creates a new
MethodTypeParameterNameCheck instance. |
修飾子とタイプ | メソッドと説明 |
---|---|
protected int |
getLocation()
This method must be overriden to specify the
location of the type parameter to check.
|
getDefaultTokens, init, mustCheckName
visitToken
getFormat, getRegexp, setCompileFlags, setFormat
beginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens
calculateScore, getCustomMessages, getErrorScore, getId, getInfoScore, getMessageBundle, getScore, getScoring, getSeverity, getSeverityLevel, getWarningScore, log, setErrorScore, setId, setInfoScore, setScore, setScoring, setSeverity, setWarningScore
configure, contextualize, finishLocalSetup, getConfiguration, setupChild
public MethodTypeParameterNameCheck()
MethodTypeParameterNameCheck
instance.protected final int getLocation()
AbstractTypeParameterNameCheck
getLocation
クラス内 AbstractTypeParameterNameCheck
TokenTypes.CLASS_DEF
or TokenTypes.METHOD_DEF
Copyright © 2001-2013. All Rights Reserved.