com.sun.source.doctree.UnknownBlockTagTree Java Examples

The following examples show how to use com.sun.source.doctree.UnknownBlockTagTree. 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: ApiDoclet.java    From uyuni with GNU General Public License v2.0 6 votes vote down vote up
private Map<String, String> getSerialMap(List<TypeElement> classes, DocTrees docTrees) {
    Map<String, String> map  = new HashMap<String, String>();

    for (TypeElement clas : classes) {
        String doc = new DocTreeScanner<String, Void>() {
            public String visitUnknownBlockTag(UnknownBlockTagTree node, Void ignore) {
                if (node.getTagName().equals(XMLRPC_DOC)) {
                    String text = new TextExtractor().scan(node.getContent(), null);
                    log("Serial Doc content: " + text);
                    return text;
                }
                return null;
            };

            public String reduce(String r1, String r2) {
                return (r1 == null ? "" : r1) + (r2 == null ? "" : r2);
            };
        }.scan(docTrees.getDocCommentTree(clas).getBlockTags(), null);

        if (doc != null) {
            map.put(clas.getSimpleName().toString(), doc);
        }
    }

    return map;
}
 
Example #2
Source File: QueryFilterTaglet.java    From morphia with Apache License 2.0 5 votes vote down vote up
@Override
public String toString(List<? extends DocTree> tags, Element element) {
    if (tags.size() == 0) {
        return null;
    }

    StringBuilder buf = new StringBuilder(String.format("<dl><dt><span class=\"strong\">%s</span></dt>", getHeader()));
    for (DocTree tag : tags) {
        String text = ((UnknownBlockTagTree) tag).getContent().get(0).toString();
        buf.append("<dd>").append(genLink(text)).append("</dd>");
    }
    return buf.toString();
}
 
Example #3
Source File: UpdateOperatorTaglet.java    From morphia with Apache License 2.0 5 votes vote down vote up
@Override
public String toString(List<? extends DocTree> tags, Element element) {
    if (tags.size() == 0) {
        return null;
    }

    StringBuilder buf = new StringBuilder(String.format("<dl><dt><span class=\"strong\">%s</span></dt>", getHeader()));
    for (DocTree tag : tags) {
        String text = ((UnknownBlockTagTree) tag).getContent().get(0).toString();
        buf.append("<dd>").append(genLink(text)).append("</dd>");
    }
    return buf.toString();
}
 
Example #4
Source File: AggregationExpressionTaglet.java    From morphia with Apache License 2.0 5 votes vote down vote up
@Override
public String toString(List<? extends DocTree> tags, Element element) {
    if (tags.size() == 0) {
        return null;
    }

    StringBuilder buf = new StringBuilder(String.format("<dl><dt><span class=\"strong\">%s</span></dt>", getHeader()));
    for (DocTree tag : tags) {
        String text = ((UnknownBlockTagTree) tag).getContent().get(0).toString();
        buf.append("<dd>").append(genLink(text)).append("</dd>");
    }
    return buf.toString();
}
 
Example #5
Source File: DocTaglet.java    From morphia with Apache License 2.0 5 votes vote down vote up
@Override
public String toString(List<? extends DocTree> tags, Element element) {
    if (tags.size() == 0) {
        return null;
    }

    StringBuilder buf = new StringBuilder(String.format("<dl><dt><span class=\"strong\">%s</span></dt>", getHeader()));
    for (DocTree tag : tags) {
        String text = ((UnknownBlockTagTree) tag).getContent().get(0).toString();
        buf.append("<dd>").append(genLink(text)).append("</dd>");
    }
    return buf.toString();
}
 
Example #6
Source File: Analyzer.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@Override
public Void visitUnknownBlockTag(UnknownBlockTagTree node, List<ErrorDescription> errors) {
    boolean oldInheritDoc = foundInheritDoc;
    super.visitUnknownBlockTag(node, errors);
    foundInheritDoc = oldInheritDoc;
    return null;
}
 
Example #7
Source File: VeryPretty.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@Override
public Void visitUnknownBlockTag(UnknownBlockTagTree node, Void p) {
    print("@");
    print(node.getTagName());
    print(" ");
    for (DocTree docTree : node.getContent()) {
        doAccept((DCTree)docTree);
    }
    return null;
}
 
Example #8
Source File: ImmutableDocTreeTranslator.java    From netbeans with Apache License 2.0 5 votes vote down vote up
protected final UnknownBlockTagTree rewriteChildren(UnknownBlockTagTree tree) {
    UnknownBlockTagTree value = tree;
    List<? extends DocTree> content = translateDoc(tree.getContent());
    if (content != tree.getContent()) {
        value = make.UnknownBlockTag(((DCTree.DCUnknownBlockTag) tree).name, tree.getContent());
    }
    return value;
}
 
Example #9
Source File: TreeFactory.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public UnknownBlockTagTree UnknownBlockTag(CharSequence name, List<? extends DocTree> content) {
    return docMake.at(NOPOS).newUnknownBlockTagTree(names.fromString(name.toString()), content);
}
 
Example #10
Source File: Checker.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Void visitUnknownBlockTag(UnknownBlockTagTree tree, Void ignore) {
    checkUnknownTag(tree, tree.getTagName());
    return super.visitUnknownBlockTag(tree, ignore);
}
 
Example #11
Source File: Checker.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Void visitUnknownBlockTag(UnknownBlockTagTree tree, Void ignore) {
    checkUnknownTag(tree, tree.getTagName());
    return super.visitUnknownBlockTag(tree, ignore);
}
 
Example #12
Source File: Checker.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Void visitUnknownBlockTag(UnknownBlockTagTree tree, Void ignore) {
    checkUnknownTag(tree, tree.getTagName());
    return super.visitUnknownBlockTag(tree, ignore);
}
 
Example #13
Source File: Checker.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Void visitUnknownBlockTag(UnknownBlockTagTree tree, Void ignore) {
    checkUnknownTag(tree, tree.getTagName());
    return super.visitUnknownBlockTag(tree, ignore);
}
 
Example #14
Source File: Checker.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Void visitUnknownBlockTag(UnknownBlockTagTree tree, Void ignore) {
    checkUnknownTag(tree, tree.getTagName());
    return super.visitUnknownBlockTag(tree, ignore);
}
 
Example #15
Source File: Checker.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Void visitUnknownBlockTag(UnknownBlockTagTree tree, Void ignore) {
    checkUnknownTag(tree, tree.getTagName());
    return super.visitUnknownBlockTag(tree, ignore);
}
 
Example #16
Source File: Checker.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@Override @DefinedBy(Api.COMPILER_TREE)
public Void visitUnknownBlockTag(UnknownBlockTagTree tree, Void ignore) {
    checkUnknownTag(tree, tree.getTagName());
    return super.visitUnknownBlockTag(tree, ignore);
}
 
Example #17
Source File: Checker.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Void visitUnknownBlockTag(UnknownBlockTagTree tree, Void ignore) {
    checkUnknownTag(tree, tree.getTagName());
    return super.visitUnknownBlockTag(tree, ignore);
}
 
Example #18
Source File: RefactoringVisitor.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public DocTree visitUnknownBlockTag(UnknownBlockTagTree node, Element p, Void ignore) {
    return super.visitUnknownBlockTag(node, p);
}
 
Example #19
Source File: RefactoringVisitor.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@Override
public DocTree visitUnknownBlockTag(UnknownBlockTagTree node, Element p) {
    return instance.visitUnknownBlockTag(node, p);
}
 
Example #20
Source File: RefactoringVisitor.java    From netbeans with Apache License 2.0 4 votes vote down vote up
/**
 * @since 1.47
 */
@Override
public DocTree visitUnknownBlockTag(UnknownBlockTagTree node, Element p) {
    return docScanner.visitUnknownBlockTag(node, p, null);
}
 
Example #21
Source File: ImmutableDocTreeTranslator.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@Override
public DocTree visitUnknownBlockTag(UnknownBlockTagTree tree, Object p) {
    return rewriteChildren(tree);
}
 
Example #22
Source File: DocTreeFactory.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a new {@code UnknownBlockTagTree} object, to represent an unrecognized block tag.
 * @param name the name of the block tag
 * @param content the content
 * @return an {@code UnknownBlockTagTree} object
 */
UnknownBlockTagTree newUnknownBlockTagTree(Name name, List<? extends DocTree> content);
 
Example #23
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 UnknownBlockTagTree} object, to represent an unrecognized block tag.
 * @param name the name of the block tag
 * @param content the content
 * @return an {@code UnknownBlockTagTree} object
 */
UnknownBlockTagTree newUnknownBlockTagTree(Name name, List<? extends DocTree> content);
 
Example #24
Source File: TreeMaker.java    From netbeans with Apache License 2.0 2 votes vote down vote up
/**Creates the DocTree's UnknownBlockTagTree.
 * 
 * @param name the tag's name
 * @param content the tag's content
 * @return newly created UnknownBlockTagTree
 * @since 0.124
 */
public UnknownBlockTagTree UnknownBlockTag(CharSequence name, List<? extends DocTree> content) {
    return delegate.UnknownBlockTag(name, content);
}