Class JavadocCommentsParserUtil
java.lang.Object
com.puppycrawl.tools.checkstyle.grammar.JavadocCommentsParserUtil
Utility class for Javadoc comments parser operations.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Private constructor to prevent instantiation of this utility class. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isNonTightTag
(org.antlr.v4.runtime.TokenStream input, Set<SimpleToken> unclosedTagNameTokens) Checks if the next token in the input stream is a non-tight tag.
-
Constructor Details
-
JavadocCommentsParserUtil
private JavadocCommentsParserUtil()Private constructor to prevent instantiation of this utility class.- Throws:
IllegalStateException
- if this constructor is called
-
-
Method Details
-
isNonTightTag
public static boolean isNonTightTag(org.antlr.v4.runtime.TokenStream input, Set<SimpleToken> unclosedTagNameTokens) Checks if the next token in the input stream is a non-tight tag.- Parameters:
input
- the input token streamunclosedTagNameTokens
- a set of unclosed tag name tokens- Returns:
- true if the next token is a non-tight tag, false otherwise
-