|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.puppycrawl.tools.checkstyle.api.AutomaticBean
com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
com.puppycrawl.tools.checkstyle.api.Check
com.puppycrawl.tools.checkstyle.checks.AbstractFormatCheck
com.puppycrawl.tools.checkstyle.checks.naming.AbstractNameCheck
com.puppycrawl.tools.checkstyle.checks.naming.AbstractTypeParameterNameCheck
public abstract class AbstractTypeParameterNameCheck
Abstract class for checking if a class/method type parameter's name conforms to a format specified by the format property.
This class extends AbstractNameCheck
Constructor Summary | |
---|---|
AbstractTypeParameterNameCheck(java.lang.String aFormat)
Creates a new AbstractTypeParameterNameCheck instance. |
Method Summary | |
---|---|
int[] |
getDefaultTokens()
Returns the default token a check is interested in. |
protected abstract int |
getLocation()
This method must be overriden to specify the location of the type parameter to check. |
void |
init()
Initialise the check. |
protected boolean |
mustCheckName(DetailAST aAST)
Decides whether the name of an AST should be checked against the format regexp. |
Methods inherited from class com.puppycrawl.tools.checkstyle.checks.naming.AbstractNameCheck |
---|
visitToken |
Methods inherited from class com.puppycrawl.tools.checkstyle.checks.AbstractFormatCheck |
---|
getFormat, getRegexp, setCompileFlags, setFormat |
Methods inherited from class com.puppycrawl.tools.checkstyle.api.Check |
---|
beginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens |
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter |
---|
getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverity |
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean |
---|
configure, contextualize, finishLocalSetup, getConfiguration, setupChild |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractTypeParameterNameCheck(java.lang.String aFormat)
AbstractTypeParameterNameCheck
instance.
aFormat
- format to check withMethod Detail |
---|
public final int[] getDefaultTokens()
Check
getDefaultTokens
in class Check
TokenTypes
public final void init()
Check
init
in class Check
protected final boolean mustCheckName(DetailAST aAST)
AbstractNameCheck
mustCheckName
in class AbstractNameCheck
aAST
- the AST to check.
protected abstract int getLocation()
TokenTypes.CLASS_DEF
or TokenTypes.METHOD_DEF
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |