Uses of Interface
com.puppycrawl.tools.checkstyle.api.TextBlock
Package
Description
Contains the core API to be used to implement checks.
Contains the checks that are bundled with the main distribution.
Contains the Imports checks that are
bundled with the main distribution.
Contains the Javadoc checks that are bundled with the main distribution.
Contains the filters that are bundled with the main distribution.
Contains utils classes for checkstyle.
-
Uses of TextBlock in com.puppycrawl.tools.checkstyle.api
Modifier and TypeFieldDescriptionFileContents.clangComments
Map of the C comments indexed on the first line of the comment to a list of comments on that line.FileContents.cppComments
Map of the C++ comments indexed on the first line of the comment.FileContents.javadocComments
Map of the Javadoc comments indexed on the last line of the comment.Modifier and TypeMethodDescriptionFileContents.getJavadocBefore
(int lineNoBefore) Returns the Javadoc comment before the specified line.Modifier and TypeMethodDescriptionFileContents.getBlockComments()
Returns a map of all block comments.FileContents.getSingleLineComments()
Returns a map of all the single-line comments. -
Uses of TextBlock in com.puppycrawl.tools.checkstyle.checks
Modifier and TypeFieldDescriptionAvoidEscapedUnicodeCharactersCheck.blockComments
C style comments.AvoidEscapedUnicodeCharactersCheck.singlelineComments
Cpp style comments.Modifier and TypeMethodDescriptionprivate static boolean
AvoidEscapedUnicodeCharactersCheck.isTrailingBlockComment
(TextBlock comment, int... codePoints) Whether the C style comment is trailing. -
Uses of TextBlock in com.puppycrawl.tools.checkstyle.checks.imports
Modifier and TypeMethodDescriptionUnusedImportsCheck.collectReferencesFromJavadoc
(TextBlock textBlock) Process a javadocTextBlock
and return the set of classes referenced within.private static List<JavadocTag>
UnusedImportsCheck.getValidTags
(TextBlock cmt, JavadocUtil.JavadocTagType tagType) Returns the list of valid tags found in a javadocTextBlock
. -
Uses of TextBlock in com.puppycrawl.tools.checkstyle.checks.javadoc
Modifier and TypeMethodDescriptionprivate void
JavadocMethodCheck.checkComment
(DetailAST ast, TextBlock comment) Checks the Javadoc for a method.private void
JavadocStyleCheck.checkComment
(DetailAST ast, TextBlock comment) Performs the various checks against the Javadoc comment.private void
JavadocStyleCheck.checkFirstSentenceEnding
(DetailAST ast, TextBlock comment) Checks that the first sentence ends with proper punctuation.private void
JavadocStyleCheck.checkHtmlTags
(DetailAST ast, TextBlock comment) Checks the comment for HTML tags that do not have a corresponding close tag or a close tag that has no previous open tag.private void
JavadocStyleCheck.checkJavadocIsNotEmpty
(TextBlock comment) Checks that the Javadoc is not empty.private List<JavadocTag>
JavadocTypeCheck.getJavadocTags
(TextBlock textBlock) Gets all standalone tags from a given javadoc.private static List<JavadocTag>
JavadocMethodCheck.getMethodTags
(TextBlock comment) Returns the tags in a javadoc comment. -
Uses of TextBlock in com.puppycrawl.tools.checkstyle.filters
Modifier and TypeMethodDescriptionprivate void
SuppressionCommentFilter.tagSuppressions
(Collection<TextBlock> comments) Appends the suppressions in a collection of comments to the full set of suppression tags.private void
SuppressWithNearbyCommentFilter.tagSuppressions
(Collection<TextBlock> comments) Appends the suppressions in a collection of comments to the full set of suppression tags. -
Uses of TextBlock in com.puppycrawl.tools.checkstyle.utils
Modifier and TypeMethodDescriptionstatic JavadocTags
JavadocUtil.getJavadocTags
(TextBlock textBlock, JavadocUtil.JavadocTagType tagType) Gets validTags from a given piece of Javadoc.