Class SpringJavadocCheck
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.api.AutomaticBean
-
- com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
-
- com.puppycrawl.tools.checkstyle.api.AbstractCheck
-
- io.spring.javaformat.checkstyle.check.SpringJavadocCheck
-
- All Implemented Interfaces:
com.puppycrawl.tools.checkstyle.api.Configurable,com.puppycrawl.tools.checkstyle.api.Contextualizable
public class SpringJavadocCheck extends com.puppycrawl.tools.checkstyle.api.AbstractCheckChecks that the javadoc comments follow Spring conventions.- Author:
- Phillip Webb
-
-
Field Summary
Fields Modifier and Type Field Description static int[]NO_REQUIRED_TOKENS
-
Constructor Summary
Constructors Constructor Description SpringJavadocCheck()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeginTree(com.puppycrawl.tools.checkstyle.api.DetailAST rootAST)int[]getAcceptableTokens()com.puppycrawl.tools.checkstyle.api.TextBlockgetBlockCommentBefore(int lineNoBefore)int[]getDefaultTokens()int[]getRequiredTokens()voidsetAllowNonJavadocComments(boolean allowNonJavadocComments)voidsetPublicOnlySinceTags(boolean publicOnlySinceTags)voidsetRequireSinceTag(boolean requireSinceTag)voidvisitToken(com.puppycrawl.tools.checkstyle.api.DetailAST ast)-
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractCheck
clearViolations, destroy, finishTree, getFileContents, 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
-
getDefaultTokens
public int[] getDefaultTokens()
-
getAcceptableTokens
public int[] getAcceptableTokens()
- Specified by:
getAcceptableTokensin classcom.puppycrawl.tools.checkstyle.api.AbstractCheck
-
beginTree
public void beginTree(com.puppycrawl.tools.checkstyle.api.DetailAST rootAST)
- Overrides:
beginTreein 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
-
getBlockCommentBefore
public com.puppycrawl.tools.checkstyle.api.TextBlock getBlockCommentBefore(int lineNoBefore)
-
setRequireSinceTag
public void setRequireSinceTag(boolean requireSinceTag)
-
setPublicOnlySinceTags
public void setPublicOnlySinceTags(boolean publicOnlySinceTags)
-
setAllowNonJavadocComments
public void setAllowNonJavadocComments(boolean allowNonJavadocComments)
-
getRequiredTokens
public int[] getRequiredTokens()
- Specified by:
getRequiredTokensin classcom.puppycrawl.tools.checkstyle.api.AbstractCheck
-
-