Class SiteUtil.DescriptionTraversalState
java.lang.Object
com.puppycrawl.tools.checkstyle.site.SiteUtil.DescriptionTraversalState
- Enclosing class:
SiteUtil
Mutable state bag used during DFS traversal in
SiteUtil.getDescriptionFromJavadocForXdoc(DetailNode, String).
Extracting these flags into a dedicated class reduces the cyclomatic complexity
of the traversal method without changing any logic.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanWhether we are currently inside a@code ...inline tag.private booleanWhether the next ATTRIBUTE_VALUE token is the value of an href attribute.private booleanWhether we are currently inside an HTML element.private booleanWhether we are currently inside a{@literal ...}inline tag. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
inCodeLiteral
Whether we are currently inside a@code ...inline tag. -
inLiteralTag
Whether we are currently inside a{@literal ...}inline tag. -
inHtmlElement
Whether we are currently inside an HTML element. -
inHrefAttribute
Whether the next ATTRIBUTE_VALUE token is the value of an href attribute.
-
-
Constructor Details
-
DescriptionTraversalState
private DescriptionTraversalState()
-