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 File: ReferenceTest.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@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 File: JavadocConverter.java From j2objc with Apache License 2.0 | 5 votes |
@Override public Void visitSee(SeeTree node, TagElement tag) { tag.setTagKind(TagElement.TagKind.SEE); setPos(node, tag); scan(node.getReference(), tag); return null; }
Example #3
Source File: ReferenceTest.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
@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 File: ReferenceTest.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
@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 #5
Source File: ReferenceTest.java From hottub with GNU General Public License v2.0 | 5 votes |
@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 #6
Source File: ReferenceTest.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@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 #7
Source File: ReferenceTest.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@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 File: Analyzer.java From netbeans with Apache License 2.0 | 5 votes |
@Override public Void visitSee(SeeTree node, List<ErrorDescription> errors) { boolean oldInheritDoc = foundInheritDoc; super.visitSee(node, errors); foundInheritDoc = oldInheritDoc; return null; }
Example #9
Source File: VeryPretty.java From netbeans with Apache License 2.0 | 5 votes |
@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 #10
Source File: ImmutableDocTreeTranslator.java From netbeans with Apache License 2.0 | 5 votes |
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 #11
Source File: ReferenceTest.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@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 File: ReferenceTest.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@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 #13
Source File: RefactoringVisitor.java From netbeans with Apache License 2.0 | 4 votes |
/** * @since 1.47 */ @Override public DocTree visitSee(SeeTree node, Element p) { return docScanner.visitSee(node, p, null); }
Example #14
Source File: RefactoringVisitor.java From netbeans with Apache License 2.0 | 4 votes |
@Override public DocTree visitSee(SeeTree node, Element p) { return instance.visitSee(node, p); }
Example #15
Source File: RefactoringVisitor.java From netbeans with Apache License 2.0 | 4 votes |
public DocTree visitSee(SeeTree node, Element p, Void ignore) { return super.visitSee(node, p); }
Example #16
Source File: TreeFactory.java From netbeans with Apache License 2.0 | 4 votes |
public SeeTree See(List<? extends DocTree> reference) { return docMake.at(NOPOS).newSeeTree(reference); }
Example #17
Source File: CommentHelper.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public List<? extends DocTree> getReference(DocTree dtree) { return dtree.getKind() == SEE ? ((SeeTree)dtree).getReference() : null; }
Example #18
Source File: ImmutableDocTreeTranslator.java From netbeans with Apache License 2.0 | 4 votes |
@Override public DocTree visitSee(SeeTree tree, Object p) { return rewriteChildren(tree); }
Example #19
Source File: TreeMaker.java From netbeans with Apache License 2.0 | 2 votes |
/**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 #20
Source File: DocTreeFactory.java From openjdk-jdk9 with GNU General Public License v2.0 | 2 votes |
/** * 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 #21
Source File: DocTreeFactory.java From lua-for-android with BSD 3-Clause "New" or "Revised" License | 2 votes |
/** * 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);