Java源码示例:com.sun.source.doctree.SinceTree

示例1
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;
}
 
示例2
@Override
public Void visitSince(SinceTree node, Void p) {
    printTagName(node);
    print(" ");
    for (DocTree docTree : node.getBody()) {
        doAccept((DCTree)docTree);
    }
    return null;
}
 
示例3
@Override
public Void visitSince(SinceTree node, List<ErrorDescription> errors) {
    boolean oldInheritDoc = foundInheritDoc;
    super.visitSince(node, errors);
    foundInheritDoc = oldInheritDoc;
    return null;
}
 
示例4
@Override
public Void visitSince(SinceTree tree, Void ignore) {
    warnIfEmpty(tree, tree.getBody());
    return super.visitSince(tree, ignore);
}
 
示例5
@Override
public Void visitSince(SinceTree tree, Void ignore) {
    warnIfEmpty(tree, tree.getBody());
    return super.visitSince(tree, ignore);
}
 
示例6
@Override
public Void visitSince(SinceTree tree, Void ignore) {
    warnIfEmpty(tree, tree.getBody());
    return super.visitSince(tree, ignore);
}
 
示例7
@Override
public DocTree visitSince(SinceTree tree, Object p) {
    return rewriteChildren(tree);
}
 
示例8
public SinceTree Since(List<? extends DocTree> text) {
    return docMake.at(NOPOS).newSinceTree(text);
}
 
示例9
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;
}
 
示例10
/**
 * @since 1.47
 */
@Override
public DocTree visitSince(SinceTree node, Element p) {
    return docScanner.visitSince(node, p, null);
}
 
示例11
@Override
public DocTree visitSince(SinceTree node, Element p) {
    return instance.visitSince(node, p);
}
 
示例12
public DocTree visitSince(SinceTree node, Element p, Void ignore) {
    return super.visitSince(node, p);
}
 
示例13
@Override
public Void visitSince(SinceTree tree, Void ignore) {
    warnIfEmpty(tree, tree.getBody());
    return super.visitSince(tree, ignore);
}
 
示例14
@Override @DefinedBy(Api.COMPILER_TREE)
public Void visitSince(SinceTree tree, Void ignore) {
    warnIfEmpty(tree, tree.getBody());
    return super.visitSince(tree, ignore);
}
 
示例15
@Override
public Void visitSince(SinceTree tree, Void ignore) {
    warnIfEmpty(tree, tree.getBody());
    return super.visitSince(tree, ignore);
}
 
示例16
@Override
public Void visitSince(SinceTree tree, Void ignore) {
    warnIfEmpty(tree, tree.getBody());
    return super.visitSince(tree, ignore);
}
 
示例17
@Override
public Void visitSince(SinceTree tree, Void ignore) {
    warnIfEmpty(tree, tree.getBody());
    return super.visitSince(tree, ignore);
}
 
示例18
@Override
public Void visitSince(SinceTree node, TagElement tag) {
  setTagValues(tag, TagElement.TagKind.SINCE, node, node.getBody());
  return null;
}
 
示例19
/**
 * 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);
 
示例20
/**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);
}
 
示例21
/**
 * 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);