com.sun.source.doctree.CommentTree Java Examples

The following examples show how to use com.sun.source.doctree.CommentTree. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ImmutableDocTreeTranslator.java    From netbeans with Apache License 2.0 4 votes vote down vote up
protected final CommentTree rewriteChildren(CommentTree tree) {
    return tree; // Nothing to do for a string
}
 
Example #2
Source File: ImmutableDocTreeTranslator.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@Override
public DocTree visitComment(CommentTree tree, Object p) {
    return rewriteChildren(tree);
}
 
Example #3
Source File: VeryPretty.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@Override
public Void visitComment(CommentTree node, Void p) {
    print(node.getBody());
    return null;
}
 
Example #4
Source File: RefactoringVisitor.java    From netbeans with Apache License 2.0 4 votes vote down vote up
/**
 * @since 1.47
 */
@Override
public DocTree visitComment(CommentTree node, Element p) {
    return docScanner.visitComment(node, p, null);
}
 
Example #5
Source File: RefactoringVisitor.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@Override
public DocTree visitComment(CommentTree node, Element p) {
    return instance.visitComment(node, p);
}
 
Example #6
Source File: RefactoringVisitor.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public DocTree visitComment(CommentTree node, Element p, Void ignore) {
    return super.visitComment(node, p);
}
 
Example #7
Source File: Analyzer.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@Override
public Void visitComment(CommentTree node, List<ErrorDescription> errors) {
    return super.visitComment(node, errors);
}
 
Example #8
Source File: JavadocConverter.java    From j2objc with Apache License 2.0 4 votes vote down vote up
@Override
public Void visitComment(CommentTree node, TagElement tag) {
  tag.addFragment(setPos(node, new TextElement().setText(node.getBody())));
  return null;
}
 
Example #9
Source File: DocTreeFactory.java    From lua-for-android with BSD 3-Clause "New" or "Revised" License 2 votes vote down vote up
/**
 * Create a new {@code CommentTree}, to represent an HTML comment.
 * @param text the content of the comment
 * @return a {@code CommentTree} object
 */
CommentTree newCommentTree(String text);
 
Example #10
Source File: TreeMaker.java    From netbeans with Apache License 2.0 2 votes vote down vote up
/**Creates the DocTree's HTML CommentTree.
 * 
 * @param text the text that should be wrapped as HTML comment
 * @return newly created CommentTree
 * @since 0.124
 */
public CommentTree Comment(String text) {
    return delegate.Comment(text);
}
 
Example #11
Source File: DocTreeFactory.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a new {@code CommentTree}, to represent an HTML comment.
 * @param text the content of the comment
 * @return a {@code CommentTree} object
 */
CommentTree newCommentTree(String text);