|
||||||||||
| 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(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(String aFormat)
AbstractTypeParameterNameCheck instance.
aFormat - format to check with| Method Detail |
|---|
public final int[] getDefaultTokens()
Check
getDefaultTokens in class CheckTokenTypespublic final void init()
Check
init in class Checkprotected final boolean mustCheckName(DetailAST aAST)
AbstractNameCheck
mustCheckName in class AbstractNameCheckaAST - the AST to check.
protected abstract int getLocation()
TokenTypes.CLASS_DEF
or TokenTypes.METHOD_DEF
|
Back to the Checkstyle Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||