com.sun.source.doctree.IndexTree Java Examples

The following examples show how to use com.sun.source.doctree.IndexTree. 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 IndexTree rewriteChildren(IndexTree tree) {
    IndexTree value = tree;
    List<? extends DocTree> desc = translateDoc(tree.getDescription());
    DocTree term = translate(tree.getSearchTerm());
    if (desc != tree.getDescription() || term != tree.getSearchTerm()) {
        value = make.Index(term, desc);
    }
    return value;
}
 
Example #2
Source File: VeryPretty.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@Override
public Void visitIndex(IndexTree node, Void p) {
    print("{");
    printTagName(node);
    print(" ");
    doAccept((DCTree)node.getSearchTerm());
    if (!node.getDescription().isEmpty()) {
        print(" ");
        for (DocTree docTree : node.getDescription()) {
            doAccept((DCTree)docTree);
        }
    }
    print("}");
    return null;
}
 
Example #3
Source File: ImmutableDocTreeTranslator.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@Override
public DocTree visitIndex(IndexTree tree, Object p) {
    return rewriteChildren(tree);
}
 
Example #4
Source File: TreeFactory.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public IndexTree Index(DocTree term, List<? extends DocTree> description) {
    return docMake.at(NOPOS).newIndexTree(term, description);
}
 
Example #5
Source File: RefactoringVisitor.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@Override
public DocTree visitIndex(IndexTree node, Element p) {
    return docScanner.visitIndex(node, p, null);
}
 
Example #6
Source File: RefactoringVisitor.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@Override
public DocTree visitIndex(IndexTree node, Element p) {
    return instance.visitIndex(node, p);
}
 
Example #7
Source File: RefactoringVisitor.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public DocTree visitIndex(IndexTree node, Element p, Void ignore) {
    return super.visitIndex(node, p);
}
 
Example #8
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 IndexTree} object, to represent an {@code {@index } } tag.
 * @param term the search term
 * @param description an optional description of the search term
 * @return an {@code IndexTree} object
 */
IndexTree newIndexTree(DocTree term, List<? extends DocTree> description);
 
Example #9
Source File: DocTreeFactory.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a new {@code IndexTree} object, to represent an {@code {@index } } tag.
 * @param term the search term
 * @param description an optional description of the search term
 * @return an {@code IndexTree} object
 */
IndexTree newIndexTree(DocTree term, List<? extends DocTree> description);