Class 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
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean

        com.puppycrawl.tools.checkstyle.api.AutomaticBean.OutputStreamOptions
    • Constructor Summary

      Constructors 
      Constructor Description
      NameLengthCheck()  
    • Constructor Detail

      • NameLengthCheck

        public NameLengthCheck()
    • 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:
        getDefaultTokens in class com.puppycrawl.tools.checkstyle.api.AbstractCheck
      • getAcceptableTokens

        public int[] getAcceptableTokens()
        Specified by:
        getAcceptableTokens in class com.puppycrawl.tools.checkstyle.api.AbstractCheck
      • getRequiredTokens

        public int[] getRequiredTokens()
        Specified by:
        getRequiredTokens in class com.puppycrawl.tools.checkstyle.api.AbstractCheck
      • visitToken

        public void visitToken​(com.puppycrawl.tools.checkstyle.api.DetailAST ast)
        Overrides:
        visitToken in class com.puppycrawl.tools.checkstyle.api.AbstractCheck