Package pl.tfij.checktfijstyle.checks
Class NameLengthCheck
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.api.AutomaticBean
-
- com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
-
- com.puppycrawl.tools.checkstyle.api.AbstractCheck
-
- pl.tfij.checktfijstyle.checks.NameLengthCheck
-
- All Implemented Interfaces:
com.puppycrawl.tools.checkstyle.api.Configurable,com.puppycrawl.tools.checkstyle.api.Contextualizable
public class NameLengthCheck extends com.puppycrawl.tools.checkstyle.api.AbstractCheck
-
-
Constructor Summary
Constructors Constructor Description NameLengthCheck()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]getAcceptableTokens()int[]getDefaultTokens()int[]getRequiredTokens()voidsetMaxClassNameLength(int maxLength)voidsetMaxEnumClassNameLength(int maxLength)voidsetMaxEnumConstNameLength(int maxLength)voidsetMaxInterfaceNameLength(int maxLength)voidsetMaxMethodNameLength(int maxLength)voidsetMaxPackageNameLength(int maxLength)voidsetMaxParameterNameLength(int maxLength)voidsetMaxRecordNameLength(int maxLength)voidsetMaxVariableNameLength(int maxLength)voidvisitToken(com.puppycrawl.tools.checkstyle.api.DetailAST ast)-
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractCheck
beginTree, clearViolations, destroy, finishTree, getFileContents, getFilePath, getLine, getLineCodePoints, getLines, getTabWidth, getTokenNames, getViolations, init, isCommentNodesRequired, leaveToken, log, log, log, setFileContents, setTabWidth, setTokens
-
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
finishLocalSetup, getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, setId, setSeverity
-
-
-
-
Method Detail
-
setMaxClassNameLength
public void setMaxClassNameLength(int maxLength)
-
setMaxMethodNameLength
public void setMaxMethodNameLength(int maxLength)
-
setMaxRecordNameLength
public void setMaxRecordNameLength(int maxLength)
-
setMaxParameterNameLength
public void setMaxParameterNameLength(int maxLength)
-
setMaxVariableNameLength
public void setMaxVariableNameLength(int maxLength)
-
setMaxInterfaceNameLength
public void setMaxInterfaceNameLength(int maxLength)
-
setMaxPackageNameLength
public void setMaxPackageNameLength(int maxLength)
-
setMaxEnumClassNameLength
public void setMaxEnumClassNameLength(int maxLength)
-
setMaxEnumConstNameLength
public void setMaxEnumConstNameLength(int maxLength)
-
getDefaultTokens
public int[] getDefaultTokens()
- Specified by:
getDefaultTokensin classcom.puppycrawl.tools.checkstyle.api.AbstractCheck
-
getAcceptableTokens
public int[] getAcceptableTokens()
- Specified by:
getAcceptableTokensin classcom.puppycrawl.tools.checkstyle.api.AbstractCheck
-
getRequiredTokens
public int[] getRequiredTokens()
- Specified by:
getRequiredTokensin classcom.puppycrawl.tools.checkstyle.api.AbstractCheck
-
visitToken
public void visitToken(com.puppycrawl.tools.checkstyle.api.DetailAST ast)
- Overrides:
visitTokenin classcom.puppycrawl.tools.checkstyle.api.AbstractCheck
-
-