Package com.puppycrawl.tools.checkstyle
Class JavadocDetailNodeParser.ParseStatus
java.lang.Object
com.puppycrawl.tools.checkstyle.JavadocDetailNodeParser.ParseStatus
- Enclosing class:
- JavadocDetailNodeParser
Contains result of parsing javadoc comment: DetailNode tree and parse
error message.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.antlr.v4.runtime.Token
Stores the first non-tight HTML tag encountered while parsing javadoc.Parse error message (is null if parsing is successful).private DetailNode
DetailNode tree (is null if parsing fails). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.antlr.v4.runtime.Token
Getter for the first non-tight HTML tag encountered while parsing javadoc.Getter for error message during parsing.getTree()
Getter for DetailNode tree.boolean
This method is used to check if the javadoc parsed has non-tight HTML tags.void
setParseErrorMessage
(JavadocDetailNodeParser.ParseErrorMessage parseErrorMessage) Sets parse error message.void
setTree
(DetailNode tree) Sets DetailNode tree.
-
Field Details
-
tree
DetailNode tree (is null if parsing fails). -
parseErrorMessage
Parse error message (is null if parsing is successful). -
firstNonTightHtmlTag
Stores the first non-tight HTML tag encountered while parsing javadoc.- See Also:
-
-
Constructor Details
-
ParseStatus
public ParseStatus()
-
-
Method Details
-
getTree
Getter for DetailNode tree.- Returns:
- DetailNode tree if parsing was successful, null otherwise.
-
setTree
Sets DetailNode tree.- Parameters:
tree
- DetailNode tree.
-
getParseErrorMessage
Getter for error message during parsing.- Returns:
- Error message if parsing was unsuccessful, null otherwise.
-
setParseErrorMessage
Sets parse error message.- Parameters:
parseErrorMessage
- Parse error message.
-
isNonTight
This method is used to check if the javadoc parsed has non-tight HTML tags.- Returns:
- returns true if the javadoc has at least one non-tight HTML tag; false otherwise
- See Also:
-
getFirstNonTightHtmlTag
Getter for the first non-tight HTML tag encountered while parsing javadoc.- Returns:
- the first non-tight HTML tag that is encountered while parsing Javadoc, if one exists
- See Also:
-