com.sun.source.doctree.VersionTree Java Examples

The following examples show how to use com.sun.source.doctree.VersionTree. 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 VersionTree rewriteChildren(VersionTree tree) {
    VersionTree value = tree;
    List<? extends DocTree> body = translateDoc(tree.getBody());
    if (body != tree.getBody()) {
        value = make.Version(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 visitVersion(VersionTree 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 visitVersion(VersionTree node, List<ErrorDescription> errors) {
    boolean oldInheritDoc = foundInheritDoc;
    super.visitVersion(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
@Override
public DocTree visitVersion(VersionTree node, Element p) {
    return instance.visitVersion(node, p);
}
 
Example #5
Source File: JavadocConverter.java    From j2objc with Apache License 2.0 4 votes vote down vote up
@Override
public Void visitVersion(VersionTree node, TagElement tag) {
  setTagValues(tag, TagElement.TagKind.VERSION, 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 visitVersion(VersionTree tree, Void ignore) {
    warnIfEmpty(tree, tree.getBody());
    return super.visitVersion(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 visitVersion(VersionTree tree, Void ignore) {
    warnIfEmpty(tree, tree.getBody());
    return super.visitVersion(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 visitVersion(VersionTree tree, Void ignore) {
    warnIfEmpty(tree, tree.getBody());
    return super.visitVersion(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 visitVersion(VersionTree tree, Void ignore) {
    warnIfEmpty(tree, tree.getBody());
    return super.visitVersion(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 visitVersion(VersionTree tree, Void ignore) {
    warnIfEmpty(tree, tree.getBody());
    return super.visitVersion(tree, ignore);
}
 
Example #11
Source File: RefactoringVisitor.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public DocTree visitVersion(VersionTree node, Element p, Void ignore) {
    return super.visitVersion(node, p);
}
 
Example #12
Source File: Checker.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Void visitVersion(VersionTree tree, Void ignore) {
    warnIfEmpty(tree, tree.getBody());
    return super.visitVersion(tree, ignore);
}
 
Example #13
Source File: RefactoringVisitor.java    From netbeans with Apache License 2.0 4 votes vote down vote up
/**
 * @since 1.47
 */
@Override
public DocTree visitVersion(VersionTree node, Element p) {
    return docScanner.visitVersion(node, p, null);
}
 
Example #14
Source File: TreeFactory.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public VersionTree Version(List<? extends DocTree> text) {
    return docMake.at(NOPOS).newVersionTree(text);
}
 
Example #15
Source File: ImmutableDocTreeTranslator.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@Override
public DocTree visitVersion(VersionTree tree, Object p) {
    return rewriteChildren(tree);
}
 
Example #16
Source File: Checker.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Void visitVersion(VersionTree tree, Void ignore) {
    warnIfEmpty(tree, tree.getBody());
    return super.visitVersion(tree, ignore);
}
 
Example #17
Source File: Checker.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Void visitVersion(VersionTree tree, Void ignore) {
    warnIfEmpty(tree, tree.getBody());
    return super.visitVersion(tree, ignore);
}
 
Example #18
Source File: TreeMaker.java    From netbeans with Apache License 2.0 2 votes vote down vote up
/**Creates the DocTree's VersionTree.
 * 
 * @param text the version's text
 * @return newly created VersionTree
 * @since 0.124
 */
public VersionTree Version(List<? extends DocTree> text) {
    return delegate.Version(text);
}
 
Example #19
Source File: DocTreeFactory.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a new {@code VersionTree} object, to represent a {@code {@version } } tag.
 * @param text the content of the tag
 * @return a {@code VersionTree} object
 */
VersionTree newVersionTree(List<? extends DocTree> text);
 
Example #20
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 VersionTree} object, to represent a {@code {@version } } tag.
 * @param text the content of the tag
 * @return a {@code VersionTree} object
 */
VersionTree newVersionTree(List<? extends DocTree> text);