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 Project: uyuni   Author: uyuni-project   File: ApiDoclet.java    License: 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 Project: netbeans   Author: apache   File: ImmutableDocTreeTranslator.java    License: 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 #3
Source Project: netbeans   Author: apache   File: VeryPretty.java    License: 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 #4
Source Project: netbeans   Author: apache   File: Analyzer.java    License: 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 #5
Source Project: morphia   Author: MorphiaOrg   File: DocTaglet.java    License: 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 Project: morphia   Author: MorphiaOrg   File: AggregationExpressionTaglet.java    License: 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 #7
Source Project: morphia   Author: MorphiaOrg   File: UpdateOperatorTaglet.java    License: 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 #8
Source Project: morphia   Author: MorphiaOrg   File: QueryFilterTaglet.java    License: 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 #9
Source Project: TencentKona-8   Author: Tencent   File: Checker.java    License: 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 #10
Source Project: jdk8u60   Author: chenghanpeng   File: Checker.java    License: 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 Project: openjdk-jdk8u   Author: AdoptOpenJDK   File: Checker.java    License: 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 Project: netbeans   Author: apache   File: ImmutableDocTreeTranslator.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public DocTree visitUnknownBlockTag(UnknownBlockTagTree tree, Object p) {
    return rewriteChildren(tree);
}
 
Example #13
Source Project: netbeans   Author: apache   File: TreeFactory.java    License: 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 #14
Source Project: netbeans   Author: apache   File: RefactoringVisitor.java    License: 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 #15
Source Project: netbeans   Author: apache   File: RefactoringVisitor.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public DocTree visitUnknownBlockTag(UnknownBlockTagTree node, Element p) {
    return instance.visitUnknownBlockTag(node, p);
}
 
Example #16
Source Project: netbeans   Author: apache   File: RefactoringVisitor.java    License: 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 #17
Source Project: openjdk-jdk8u-backup   Author: AdoptOpenJDK   File: Checker.java    License: 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 Project: openjdk-jdk9   Author: AdoptOpenJDK   File: Checker.java    License: 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 #19
Source Project: hottub   Author: dsrg-uoft   File: Checker.java    License: 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 #20
Source Project: openjdk-8-source   Author: keerath   File: Checker.java    License: 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 #21
Source Project: openjdk-8   Author: bpupadhyaya   File: Checker.java    License: 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 #22
Source Project: lua-for-android   Author: qtiuto   File: DocTreeFactory.java    License: 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 #23
Source Project: netbeans   Author: apache   File: TreeMaker.java    License: 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);
}
 
Example #24
Source Project: openjdk-jdk9   Author: AdoptOpenJDK   File: DocTreeFactory.java    License: 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);