com.sun.source.doctree.SinceTree Java Examples

The following examples show how to use com.sun.source.doctree.SinceTree. 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 5 votes vote down vote up
protected final SinceTree rewriteChildren(SinceTree tree) {
    SinceTree value = tree;
    List<? extends DocTree> body = tree.getBody();
    if (body != tree.getBody()) {
        value = make.Since(body);
    }
    return value;
}
 
Example #2
Source File: VeryPretty.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@Override
public Void visitSince(SinceTree node, Void p) {
    printTagName(node);
    print(" ");
    for (DocTree docTree : node.getBody()) {
        doAccept((DCTree)docTree);
    }
    return null;
}
 
Example #3
Source File: Analyzer.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@Override
public Void visitSince(SinceTree node, List<ErrorDescription> errors) {
    boolean oldInheritDoc = foundInheritDoc;
    super.visitSince(node, errors);
    foundInheritDoc = oldInheritDoc;
    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 visitSince(SinceTree node, Element p) {
    return docScanner.visitSince(node, p, null);
}
 
Example #5
Source File: JavadocConverter.java    From j2objc with Apache License 2.0 4 votes vote down vote up
@Override
public Void visitSince(SinceTree node, TagElement tag) {
  setTagValues(tag, TagElement.TagKind.SINCE, node, node.getBody());
  return null;
}
 
Example #6
Source File: Checker.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Void visitSince(SinceTree tree, Void ignore) {
    warnIfEmpty(tree, tree.getBody());
    return super.visitSince(tree, ignore);
}
 
Example #7
Source File: Checker.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Void visitSince(SinceTree tree, Void ignore) {
    warnIfEmpty(tree, tree.getBody());
    return super.visitSince(tree, ignore);
}
 
Example #8
Source File: Checker.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Void visitSince(SinceTree tree, Void ignore) {
    warnIfEmpty(tree, tree.getBody());
    return super.visitSince(tree, ignore);
}
 
Example #9
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 visitSince(SinceTree tree, Void ignore) {
    warnIfEmpty(tree, tree.getBody());
    return super.visitSince(tree, ignore);
}
 
Example #10
Source File: Checker.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Void visitSince(SinceTree tree, Void ignore) {
    warnIfEmpty(tree, tree.getBody());
    return super.visitSince(tree, ignore);
}
 
Example #11
Source File: RefactoringVisitor.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public DocTree visitSince(SinceTree node, Element p, Void ignore) {
    return super.visitSince(node, p);
}
 
Example #12
Source File: RefactoringVisitor.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@Override
public DocTree visitSince(SinceTree node, Element p) {
    return instance.visitSince(node, p);
}
 
Example #13
Source File: Checker.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Void visitSince(SinceTree tree, Void ignore) {
    warnIfEmpty(tree, tree.getBody());
    return super.visitSince(tree, ignore);
}
 
Example #14
Source File: JavaFixUtilities.java    From netbeans with Apache License 2.0 4 votes vote down vote up
static SpecificationVersion computeSpecVersion(CompilationInfo info, Element el) {
    if (!Utilities.isJavadocSupported(info)) return null;

    DocCommentTree javaDoc = info.getDocTrees().getDocCommentTree(el);

    if (javaDoc == null) return null;

    for (DocTree tag : javaDoc.getBlockTags()) {
        if (tag.getKind() != DocTree.Kind.SINCE) {
            continue;
        }

        String text = ((SinceTree) tag).getBody().toString();

        Matcher m = SPEC_VERSION.matcher(text);

        if (!m.find()) {
            continue;
        }

        return new SpecificationVersion(m.group()/*ver.toString()*/);
    }

    return null;
}
 
Example #15
Source File: TreeFactory.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public SinceTree Since(List<? extends DocTree> text) {
    return docMake.at(NOPOS).newSinceTree(text);
}
 
Example #16
Source File: ImmutableDocTreeTranslator.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@Override
public DocTree visitSince(SinceTree tree, Object p) {
    return rewriteChildren(tree);
}
 
Example #17
Source File: Checker.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Void visitSince(SinceTree tree, Void ignore) {
    warnIfEmpty(tree, tree.getBody());
    return super.visitSince(tree, ignore);
}
 
Example #18
Source File: Checker.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Void visitSince(SinceTree tree, Void ignore) {
    warnIfEmpty(tree, tree.getBody());
    return super.visitSince(tree, ignore);
}
 
Example #19
Source File: TreeMaker.java    From netbeans with Apache License 2.0 2 votes vote down vote up
/**Creates the DocTree's SinceTree.
 * 
 * @param text the content of the tag
 * @return newly created SinceTree
 * @since 0.124
 */
public SinceTree Since(List<? extends DocTree> text) {
    return delegate.Since(text);
}
 
Example #20
Source File: DocTreeFactory.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a new {@code SinceTree} object, to represent a {@code @since } tag.
 * @param text the content of the tag
 * @return a {@code SinceTree} object
 */
SinceTree newSinceTree(List<? extends DocTree> text);
 
Example #21
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 SinceTree} object, to represent a {@code @since } tag.
 * @param text the content of the tag
 * @return a {@code SinceTree} object
 */
SinceTree newSinceTree(List<? extends DocTree> text);