Uses of Interface
com.puppycrawl.tools.checkstyle.api.DetailNode
-
Packages that use DetailNode Package Description com.puppycrawl.tools.checkstyle Contains the implementation of the Checkstyle framework.com.puppycrawl.tools.checkstyle.api Contains the core API to be used to implement checks.com.puppycrawl.tools.checkstyle.checks.javadoc Contains the Javadoc checks that are bundled with the main distribution.com.puppycrawl.tools.checkstyle.gui User interface classes for CheckStyle.com.puppycrawl.tools.checkstyle.utils Contains utils classes for checkstyle. -
-
Uses of DetailNode in com.puppycrawl.tools.checkstyle
Fields in com.puppycrawl.tools.checkstyle declared as DetailNode Modifier and Type Field Description private DetailNodeJavadocDetailNodeParser.ParseStatus. treeDetailNode tree (is null if parsing fails).Methods in com.puppycrawl.tools.checkstyle that return DetailNode Modifier and Type Method Description private DetailNodeJavadocDetailNodeParser. convertParseTreeToDetailNode(org.antlr.v4.runtime.tree.ParseTree parseTreeNode)Converts ParseTree (that is generated by ANTLRv4) to DetailNode tree.DetailNodeJavadocDetailNodeParser.ParseStatus. getTree()Getter for DetailNode tree.private static DetailNodeDetailNodeTreeStringPrinter. parseFile(java.io.File file)Parse a file and return the parse tree.static DetailNodeDetailNodeTreeStringPrinter. parseJavadocAsDetailNode(DetailAST blockComment)Parse block comment DetailAST as Javadoc DetailNode tree.private static DetailNodeDetailNodeTreeStringPrinter. parseJavadocAsDetailNode(java.lang.String javadocComment)Parse javadoc comment to DetailNode tree.Methods in com.puppycrawl.tools.checkstyle with parameters of type DetailNode Modifier and Type Method Description private voidJavadocDetailNodeParser. adjustFirstLineToJavadocIndent(DetailNode tree, int javadocColumnNumber)Adjust first line nodes to javadoc indent.private JavadocNodeImplJavadocDetailNodeParser. createJavadocNode(org.antlr.v4.runtime.tree.ParseTree parseTree, DetailNode parent, int index)Creates JavadocNodeImpl node on base of ParseTree node.private static java.lang.StringDetailNodeTreeStringPrinter. getIndentation(DetailNode node)Get indentation for a node.static java.lang.StringDetailNodeTreeStringPrinter. printTree(DetailNode ast, java.lang.String rootPrefix, java.lang.String prefix)Print AST.voidJavadocDetailNodeParser.ParseStatus. setTree(DetailNode tree)Sets DetailNode tree. -
Uses of DetailNode in com.puppycrawl.tools.checkstyle.api
Methods in com.puppycrawl.tools.checkstyle.api that return DetailNode Modifier and Type Method Description DetailNode[]DetailNode. getChildren()Array of children.DetailNodeDetailNode. getParent()Parent node. -
Uses of DetailNode in com.puppycrawl.tools.checkstyle.checks.javadoc
Classes in com.puppycrawl.tools.checkstyle.checks.javadoc that implement DetailNode Modifier and Type Class Description classJavadocNodeImplImplementation of DetailNode interface that is mutable.Fields in com.puppycrawl.tools.checkstyle.checks.javadoc declared as DetailNode Modifier and Type Field Description private DetailNode[]JavadocNodeImpl. childrenArray of child nodes.private DetailNodeJavadocNodeImpl. parentParent node.Methods in com.puppycrawl.tools.checkstyle.checks.javadoc that return DetailNode Modifier and Type Method Description DetailNode[]JavadocNodeImpl. getChildren()private static DetailNodeJavadocParagraphCheck. getNearestEmptyLine(DetailNode node)Finds and returns nearest empty line in javadoc.private static DetailNodeJavadocParagraphCheck. getNearestNode(DetailNode node)Returns nearest node.DetailNodeJavadocNodeImpl. getParent()Methods in com.puppycrawl.tools.checkstyle.checks.javadoc that return types with arguments of type DetailNode Modifier and Type Method Description private static java.util.List<DetailNode>JavadocTagContinuationIndentationCheck. getAllNewlineNodes(DetailNode descriptionNode)Finds and collects all NEWLINE nodes inside DESCRIPTION node.Methods in com.puppycrawl.tools.checkstyle.checks.javadoc with parameters of type DetailNode Modifier and Type Method Description voidAbstractJavadocCheck. beginJavadocTree(DetailNode rootAst)Called before the starting to process a tree.private voidJavadocParagraphCheck. checkEmptyLine(DetailNode newline)Determines whether or not the next line after empty line has paragraph tag in the beginning.private voidAtclauseOrderCheck. checkOrderInTagSection(DetailNode javadoc)Checks order of atclauses in tag section node.private voidJavadocParagraphCheck. checkParagraphTag(DetailNode tag)Determines whether or not the line with paragraph tag has previous empty line.voidAbstractJavadocCheck. finishJavadocTree(DetailNode rootAst)Called after finished processing a tree.private static java.util.List<DetailNode>JavadocTagContinuationIndentationCheck. getAllNewlineNodes(DetailNode descriptionNode)Finds and collects all NEWLINE nodes inside DESCRIPTION node.private static java.lang.StringSummaryJavadocCheck. getFirstSentence(DetailNode ast)Finds and returns first sentence.private static DetailNodeJavadocParagraphCheck. getNearestEmptyLine(DetailNode node)Finds and returns nearest empty line in javadoc.private static DetailNodeJavadocParagraphCheck. getNearestNode(DetailNode node)Returns nearest node.private booleanSingleLineJavadocCheck. hasJavadocInlineTags(DetailNode javadocRoot)Checks if comment has in-line tags which are not ignored.private booleanSingleLineJavadocCheck. hasJavadocTags(DetailNode javadocRoot)Checks if comment has javadoc tags which are not ignored.private static booleanJavadocParagraphCheck. isEmptyLine(DetailNode newLine)Determines whether or not the line is empty line.private static booleanNonEmptyAtclauseDescriptionCheck. isEmptyTag(DetailNode tagNode)Tests if at-clause tag is empty.private static booleanJavadocParagraphCheck. isFirstParagraph(DetailNode paragraphTag)Determines whether or not the line with paragraph tag is first line in javadoc.private static booleanJavadocParagraphCheck. isImmediatelyFollowedByText(DetailNode tag)Tests whether the paragraph tag is immediately followed by the text.private static booleanJavadocTagContinuationIndentationCheck. isInlineDescription(DetailNode description)Checks, if description node is a description of in-line tag.private static booleanJavadocParagraphCheck. isLastEmptyLine(DetailNode newLine)Tests if NEWLINE node is a last node in javadoc.private static booleanSummaryJavadocCheck. isOnlyInheritDoc(DetailNode ast)Finds if inheritDoc is placed properly in java doc.private booleanSingleLineJavadocCheck. isTagIgnored(DetailNode javadocTagSection)Checks if list of ignored tags contains javadocTagSection's javadoc tag.voidAbstractJavadocCheck. leaveJavadocToken(DetailNode ast)Called after all the child nodes have been process.private voidAbstractJavadocCheck. processTree(DetailNode root)Processes JavadocAST tree notifying Check.voidJavadocNodeImpl. setChildren(DetailNode... children)Sets array of child nodes.voidJavadocNodeImpl. setParent(DetailNode parent)Sets parent node.private booleanAbstractJavadocCheck. shouldBeProcessed(DetailNode curNode)Checks whether the current node should be processed by the check.abstract voidAbstractJavadocCheck. visitJavadocToken(DetailNode ast)Called to process a Javadoc token.voidAtclauseOrderCheck. visitJavadocToken(DetailNode ast)voidJavadocParagraphCheck. visitJavadocToken(DetailNode ast)voidJavadocTagContinuationIndentationCheck. visitJavadocToken(DetailNode ast)voidNonEmptyAtclauseDescriptionCheck. visitJavadocToken(DetailNode ast)voidSingleLineJavadocCheck. visitJavadocToken(DetailNode ast)voidSummaryJavadocCheck. visitJavadocToken(DetailNode ast)private voidAbstractJavadocCheck. walk(DetailNode root)Processes a node calling Check at interested nodes. -
Uses of DetailNode in com.puppycrawl.tools.checkstyle.gui
Fields in com.puppycrawl.tools.checkstyle.gui with type parameters of type DetailNode Modifier and Type Field Description private java.util.Map<DetailAST,DetailNode>ParseTreeTablePresentation. blockCommentToJavadocTreeCache to store already parsed Javadoc comments.Methods in com.puppycrawl.tools.checkstyle.gui that return DetailNode Modifier and Type Method Description private DetailNodeParseTreeTablePresentation. getJavadocTree(DetailAST blockComment)Gets Javadoc (DetailNode) tree of specified block comments.Methods in com.puppycrawl.tools.checkstyle.gui with parameters of type DetailNode Modifier and Type Method Description private intCodeSelectorPresentation. findLastPosition(DetailNode detailNode)Finds the last position of node without children.private voidCodeSelectorPresentation. findSelectionPositions(DetailNode detailNode)Find start and end selection positions from DetailNode line and Column.private java.lang.ObjectParseTreeTablePresentation. getValueAtDetailNode(DetailNode node, int column)Gets a value for DetailNode object.Constructors in com.puppycrawl.tools.checkstyle.gui with parameters of type DetailNode Constructor Description CodeSelectorPresentation(DetailNode node, java.util.List<java.lang.Integer> lines2position)Constructor. -
Uses of DetailNode in com.puppycrawl.tools.checkstyle.utils
Methods in com.puppycrawl.tools.checkstyle.utils that return DetailNode Modifier and Type Method Description static DetailNodeJavadocUtils. findFirstToken(DetailNode detailNode, int type)Returns the first child token that has a specified type.static DetailNodeJavadocUtils. getFirstChild(DetailNode node)Gets first child node of specified node.static DetailNodeJavadocUtils. getNextSibling(DetailNode node)Gets next sibling of specified node.static DetailNodeJavadocUtils. getNextSibling(DetailNode node, int tokenType)Gets next sibling of specified node with the specified type.static DetailNodeJavadocUtils. getPreviousSibling(DetailNode node)Gets previous sibling of specified node.Methods in com.puppycrawl.tools.checkstyle.utils with parameters of type DetailNode Modifier and Type Method Description static booleanJavadocUtils. containsInBranch(DetailNode node, int type)Checks whether node contains any node of specified type among children on any deep level.static DetailNodeJavadocUtils. findFirstToken(DetailNode detailNode, int type)Returns the first child token that has a specified type.static DetailNodeJavadocUtils. getFirstChild(DetailNode node)Gets first child node of specified node.static DetailNodeJavadocUtils. getNextSibling(DetailNode node)Gets next sibling of specified node.static DetailNodeJavadocUtils. getNextSibling(DetailNode node, int tokenType)Gets next sibling of specified node with the specified type.static DetailNodeJavadocUtils. getPreviousSibling(DetailNode node)Gets previous sibling of specified node.static java.lang.StringJavadocUtils. getTagName(DetailNode javadocTagSection)Gets tag name from javadocTagSection.
-