com.sun.source.doctree.DeprecatedTree Java Examples

The following examples show how to use com.sun.source.doctree.DeprecatedTree. 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 DeprecatedTree rewriteChildren(DeprecatedTree tree) {
    DeprecatedTree value = tree;
    List<? extends DocTree> body = tree.getBody();
    if (body != tree.getBody()) {
        value = make.Deprecated(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 visitDeprecated(DeprecatedTree node, Void p) {
    printTagName(node);
    if (!node.getBody().isEmpty()) {
        needSpace();
        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 visitDeprecated(DeprecatedTree node, List<ErrorDescription> errors) {
    boolean oldInheritDoc = foundInheritDoc;
    super.visitDeprecated(node, errors);
    foundInheritDoc = oldInheritDoc;
    return null;
}
 
Example #4
Source File: ImmutableDocTreeTranslator.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@Override
public DocTree visitDeprecated(DeprecatedTree tree, Object p) {
    return rewriteChildren(tree);
}
 
Example #5
Source File: TreeFactory.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public DeprecatedTree Deprecated(List<? extends DocTree> text) {
    return docMake.at(NOPOS).newDeprecatedTree(text);
}
 
Example #6
Source File: RefactoringVisitor.java    From netbeans with Apache License 2.0 4 votes vote down vote up
/**
 * @since 1.47
 */
@Override
public DocTree visitDeprecated(DeprecatedTree node, Element p) {
    return docScanner.visitDeprecated(node, p, null);
}
 
Example #7
Source File: RefactoringVisitor.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@Override
public DocTree visitDeprecated(DeprecatedTree node, Element p) {
    return instance.visitDeprecated(node, p);
}
 
Example #8
Source File: RefactoringVisitor.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public DocTree visitDeprecated(DeprecatedTree node, Element p, Void ignore) {
    return super.visitDeprecated(node, p);
}
 
Example #9
Source File: JavadocConverter.java    From j2objc with Apache License 2.0 4 votes vote down vote up
@Override
public Void visitDeprecated(DeprecatedTree node, TagElement tag) {
  setTagValues(tag, TagElement.TagKind.DEPRECATED, node, node.getBody());
  return null;
}
 
Example #10
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 DeprecatedTree} object, to represent an {@code {@deprecated } } tag.
 * @param text the content of the tag
 * @return a {@code DeprecatedTree} object
 */
DeprecatedTree newDeprecatedTree(List<? extends DocTree> text);
 
Example #11
Source File: TreeMaker.java    From netbeans with Apache License 2.0 2 votes vote down vote up
/**Creates the DocTree's DeprecatedTree.
 * 
 * @param text the deprecation message
 * @return newly created DeprecatedTree
 * @since 0.124
 */
public DeprecatedTree Deprecated(List<? extends DocTree> text) {
    return delegate.Deprecated(text);
}
 
Example #12
Source File: DocTreeFactory.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a new {@code DeprecatedTree} object, to represent an {@code {@deprecated } } tag.
 * @param text the content of the tag
 * @return a {@code DeprecatedTree} object
 */
DeprecatedTree newDeprecatedTree(List<? extends DocTree> text);