Search in sources :

Example 1 with JavadocDetailNodeParser

use of com.puppycrawl.tools.checkstyle.JavadocDetailNodeParser in project checkstyle by checkstyle.

the class ParseTreeTablePresentation method getJavadocTree.

/**
     * Gets Javadoc (DetailNode) tree of specified block comments.
     * @param blockComment Javadoc comment as a block comment
     * @return DetailNode tree
     */
private DetailNode getJavadocTree(DetailAST blockComment) {
    DetailNode javadocTree = blockCommentToJavadocTree.get(blockComment);
    if (javadocTree == null) {
        javadocTree = new JavadocDetailNodeParser().parseJavadocAsDetailNode(blockComment).getTree();
        blockCommentToJavadocTree.put(blockComment, javadocTree);
    }
    return javadocTree;
}
Also used : JavadocDetailNodeParser(com.puppycrawl.tools.checkstyle.JavadocDetailNodeParser) DetailNode(com.puppycrawl.tools.checkstyle.api.DetailNode)

Aggregations

JavadocDetailNodeParser (com.puppycrawl.tools.checkstyle.JavadocDetailNodeParser)1 DetailNode (com.puppycrawl.tools.checkstyle.api.DetailNode)1