com.sun.source.doctree.SeeTree Java Examples

The following examples show how to use com.sun.source.doctree.SeeTree. 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: TencentKona-8   Author: Tencent   File: ReferenceTest.java    License: GNU General Public License v2.0 5 votes vote down vote up
@Override
public Void visitSee(SeeTree tree, Void ignore) {
    List<? extends DocTree> refLabel = tree.getReference();
    if (refLabel.size() > 1 && (refLabel.get(0) instanceof ReferenceTree)) {
        ReferenceTree ref = (ReferenceTree) refLabel.get(0);
        List<? extends DocTree> label = refLabel.subList(1, refLabel.size());
        checkReference(ref, label);
    }
    return null;
}
 
Example #2
Source Project: jdk8u60   Author: chenghanpeng   File: ReferenceTest.java    License: GNU General Public License v2.0 5 votes vote down vote up
@Override
public Void visitSee(SeeTree tree, Void ignore) {
    List<? extends DocTree> refLabel = tree.getReference();
    if (refLabel.size() > 1 && (refLabel.get(0) instanceof ReferenceTree)) {
        ReferenceTree ref = (ReferenceTree) refLabel.get(0);
        List<? extends DocTree> label = refLabel.subList(1, refLabel.size());
        checkReference(ref, label);
    }
    return null;
}
 
Example #3
Source Project: openjdk-jdk8u   Author: AdoptOpenJDK   File: ReferenceTest.java    License: GNU General Public License v2.0 5 votes vote down vote up
@Override
public Void visitSee(SeeTree tree, Void ignore) {
    List<? extends DocTree> refLabel = tree.getReference();
    if (refLabel.size() > 1 && (refLabel.get(0) instanceof ReferenceTree)) {
        ReferenceTree ref = (ReferenceTree) refLabel.get(0);
        List<? extends DocTree> label = refLabel.subList(1, refLabel.size());
        checkReference(ref, label);
    }
    return null;
}
 
Example #4
Source Project: netbeans   Author: apache   File: ImmutableDocTreeTranslator.java    License: Apache License 2.0 5 votes vote down vote up
protected final SeeTree rewriteChildren(SeeTree tree) {
    SeeTree value = tree;
    List<? extends DocTree> ref = translateDoc(tree.getReference());
    if (ref != tree.getReference()) {
        value = make.See(ref);
    }
    return value;
}
 
Example #5
Source Project: netbeans   Author: apache   File: VeryPretty.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public Void visitSee(SeeTree node, Void p) {
    printTagName(node);
    boolean first = true;
    boolean needSep = true;
    for (DocTree t: node.getReference()) {
        if (needSep) print(" ");
        needSep = (first && (t instanceof ReferenceTree));
        first = false;
        print((DCTree)t);
    }
    return null;
}
 
Example #6
Source Project: netbeans   Author: apache   File: Analyzer.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public Void visitSee(SeeTree node, List<ErrorDescription> errors) {
    boolean oldInheritDoc = foundInheritDoc;
    super.visitSee(node, errors);
    foundInheritDoc = oldInheritDoc;
    return null;
}
 
Example #7
Source Project: openjdk-jdk8u-backup   Author: AdoptOpenJDK   File: ReferenceTest.java    License: GNU General Public License v2.0 5 votes vote down vote up
@Override
public Void visitSee(SeeTree tree, Void ignore) {
    List<? extends DocTree> refLabel = tree.getReference();
    if (refLabel.size() > 1 && (refLabel.get(0) instanceof ReferenceTree)) {
        ReferenceTree ref = (ReferenceTree) refLabel.get(0);
        List<? extends DocTree> label = refLabel.subList(1, refLabel.size());
        checkReference(ref, label);
    }
    return null;
}
 
Example #8
Source Project: openjdk-jdk9   Author: AdoptOpenJDK   File: ReferenceTest.java    License: GNU General Public License v2.0 5 votes vote down vote up
@Override
public Void visitSee(SeeTree tree, Void ignore) {
    List<? extends DocTree> refLabel = tree.getReference();
    if (refLabel.size() > 1 && (refLabel.get(0) instanceof ReferenceTree)) {
        ReferenceTree ref = (ReferenceTree) refLabel.get(0);
        List<? extends DocTree> label = refLabel.subList(1, refLabel.size());
        checkReference(ref, label);
    }
    return null;
}
 
Example #9
Source Project: hottub   Author: dsrg-uoft   File: ReferenceTest.java    License: GNU General Public License v2.0 5 votes vote down vote up
@Override
public Void visitSee(SeeTree tree, Void ignore) {
    List<? extends DocTree> refLabel = tree.getReference();
    if (refLabel.size() > 1 && (refLabel.get(0) instanceof ReferenceTree)) {
        ReferenceTree ref = (ReferenceTree) refLabel.get(0);
        List<? extends DocTree> label = refLabel.subList(1, refLabel.size());
        checkReference(ref, label);
    }
    return null;
}
 
Example #10
Source Project: openjdk-8-source   Author: keerath   File: ReferenceTest.java    License: GNU General Public License v2.0 5 votes vote down vote up
@Override
public Void visitSee(SeeTree tree, Void ignore) {
    List<? extends DocTree> refLabel = tree.getReference();
    if (refLabel.size() > 1 && (refLabel.get(0) instanceof ReferenceTree)) {
        ReferenceTree ref = (ReferenceTree) refLabel.get(0);
        List<? extends DocTree> label = refLabel.subList(1, refLabel.size());
        checkReference(ref, label);
    }
    return null;
}
 
Example #11
Source Project: openjdk-8   Author: bpupadhyaya   File: ReferenceTest.java    License: GNU General Public License v2.0 5 votes vote down vote up
@Override
public Void visitSee(SeeTree tree, Void ignore) {
    List<? extends DocTree> refLabel = tree.getReference();
    if (refLabel.size() > 1 && (refLabel.get(0) instanceof ReferenceTree)) {
        ReferenceTree ref = (ReferenceTree) refLabel.get(0);
        List<? extends DocTree> label = refLabel.subList(1, refLabel.size());
        checkReference(ref, label);
    }
    return null;
}
 
Example #12
Source Project: j2objc   Author: google   File: JavadocConverter.java    License: Apache License 2.0 5 votes vote down vote up
@Override
  public Void visitSee(SeeTree node, TagElement tag) {
    tag.setTagKind(TagElement.TagKind.SEE);
    setPos(node, tag);
    scan(node.getReference(), tag);
    return null;
}
 
Example #13
Source Project: netbeans   Author: apache   File: ImmutableDocTreeTranslator.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public DocTree visitSee(SeeTree tree, Object p) {
    return rewriteChildren(tree);
}
 
Example #14
Source Project: netbeans   Author: apache   File: TreeFactory.java    License: Apache License 2.0 4 votes vote down vote up
public SeeTree See(List<? extends DocTree> reference) {
    return docMake.at(NOPOS).newSeeTree(reference);
}
 
Example #15
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 visitSee(SeeTree node, Element p) {
    return docScanner.visitSee(node, p, null);
}
 
Example #16
Source Project: netbeans   Author: apache   File: RefactoringVisitor.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public DocTree visitSee(SeeTree node, Element p) {
    return instance.visitSee(node, p);
}
 
Example #17
Source Project: netbeans   Author: apache   File: RefactoringVisitor.java    License: Apache License 2.0 4 votes vote down vote up
public DocTree visitSee(SeeTree node, Element p, Void ignore) {
    return super.visitSee(node, p);
}
 
Example #18
Source Project: openjdk-jdk9   Author: AdoptOpenJDK   File: CommentHelper.java    License: GNU General Public License v2.0 4 votes vote down vote up
public List<? extends DocTree> getReference(DocTree dtree) {
    return dtree.getKind() == SEE ? ((SeeTree)dtree).getReference() : null;
}
 
Example #19
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 SeeTree} object, to represent a {@code @see } tag.
 * @param reference the reference
 * @return a {@code SeeTree} object
 */
SeeTree newSeeTree(List<? extends DocTree> reference);
 
Example #20
Source Project: netbeans   Author: apache   File: TreeMaker.java    License: Apache License 2.0 2 votes vote down vote up
/**Creates the DocTree's SeeTree.
 * 
 * @param reference to an element the tag refers to
 * @return newly created SeeTree
 * @since 0.124
 */
public SeeTree See(List<? extends DocTree> reference) {
    return delegate.See(reference);
}
 
Example #21
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 SeeTree} object, to represent a {@code @see } tag.
 * @param reference the reference
 * @return a {@code SeeTree} object
 */
SeeTree newSeeTree(List<? extends DocTree> reference);