com.sun.source.doctree.LiteralTree Java Examples
The following examples show how to use
com.sun.source.doctree.LiteralTree.
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: Checker.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@Override public Void visitLiteral(LiteralTree tree, Void ignore) { markEnclosingTag(Flag.HAS_INLINE_TAG); if (tree.getKind() == DocTree.Kind.CODE) { for (TagStackItem tsi: tagStack) { if (tsi.tag == HtmlTag.CODE) { env.messages.warning(HTML, tree, "dc.tag.code.within.code"); break; } } } return super.visitLiteral(tree, ignore); }
Example #2
Source File: JavadocConverter.java From j2objc with Apache License 2.0 | 5 votes |
@Override public Void visitLiteral(LiteralTree node, TagElement tag) { TagElement newTag = new TagElement(); TagKind tagKind = node.getKind() == DocTree.Kind.CODE ? TagKind.CODE : TagKind.LITERAL; setTagValues(newTag, tagKind, node, node.getBody()); tag.addFragment(newTag); return null; }
Example #3
Source File: Checker.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
@Override public Void visitLiteral(LiteralTree tree, Void ignore) { markEnclosingTag(Flag.HAS_INLINE_TAG); if (tree.getKind() == DocTree.Kind.CODE) { for (TagStackItem tsi: tagStack) { if (tsi.tag == HtmlTag.CODE) { env.messages.warning(HTML, tree, "dc.tag.code.within.code"); break; } } } return super.visitLiteral(tree, ignore); }
Example #4
Source File: Checker.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
@Override public Void visitLiteral(LiteralTree tree, Void ignore) { markEnclosingTag(Flag.HAS_INLINE_TAG); if (tree.getKind() == DocTree.Kind.CODE) { for (TagStackItem tsi: tagStack) { if (tsi.tag == HtmlTag.CODE) { env.messages.warning(HTML, tree, "dc.tag.code.within.code"); break; } } } return super.visitLiteral(tree, ignore); }
Example #5
Source File: Checker.java From hottub with GNU General Public License v2.0 | 5 votes |
@Override public Void visitLiteral(LiteralTree tree, Void ignore) { markEnclosingTag(Flag.HAS_INLINE_TAG); if (tree.getKind() == DocTree.Kind.CODE) { for (TagStackItem tsi: tagStack) { if (tsi.tag == HtmlTag.CODE) { env.messages.warning(HTML, tree, "dc.tag.code.within.code"); break; } } } return super.visitLiteral(tree, ignore); }
Example #6
Source File: Checker.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Override @DefinedBy(Api.COMPILER_TREE) public Void visitLiteral(LiteralTree tree, Void ignore) { markEnclosingTag(Flag.HAS_INLINE_TAG); if (tree.getKind() == DocTree.Kind.CODE) { for (TagStackItem tsi: tagStack) { if (tsi.tag == HtmlTag.CODE) { env.messages.warning(HTML, tree, "dc.tag.code.within.code"); break; } } } return super.visitLiteral(tree, ignore); }
Example #7
Source File: Checker.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@Override public Void visitLiteral(LiteralTree tree, Void ignore) { markEnclosingTag(Flag.HAS_INLINE_TAG); if (tree.getKind() == DocTree.Kind.CODE) { for (TagStackItem tsi: tagStack) { if (tsi.tag == HtmlTag.CODE) { env.messages.warning(HTML, tree, "dc.tag.code.within.code"); break; } } } return super.visitLiteral(tree, ignore); }
Example #8
Source File: VeryPretty.java From netbeans with Apache License 2.0 | 5 votes |
@Override public Void visitLiteral(LiteralTree node, Void p) { print("{"); printTagName(node); print(" "); doAccept((DCTree)node.getBody()); print("}"); return null; }
Example #9
Source File: ImmutableDocTreeTranslator.java From netbeans with Apache License 2.0 | 5 votes |
protected final LiteralTree rewriteChildren(LiteralTree tree) { LiteralTree value = tree; TextTree body = (TextTree) translate(tree.getBody()); if (body != tree.getBody()) { if(tree.getKind() == DocTree.Kind.CODE) { value = make.Code(body); } else { value = make.Literal(body); } } return value; }
Example #10
Source File: Checker.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@Override public Void visitLiteral(LiteralTree tree, Void ignore) { markEnclosingTag(Flag.HAS_INLINE_TAG); if (tree.getKind() == DocTree.Kind.CODE) { for (TagStackItem tsi: tagStack) { if (tsi.tag == HtmlTag.CODE) { env.messages.warning(HTML, tree, "dc.tag.code.within.code"); break; } } } return super.visitLiteral(tree, ignore); }
Example #11
Source File: Checker.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@Override public Void visitLiteral(LiteralTree tree, Void ignore) { markEnclosingTag(Flag.HAS_INLINE_TAG); if (tree.getKind() == DocTree.Kind.CODE) { for (TagStackItem tsi: tagStack) { if (tsi.tag == HtmlTag.CODE) { env.messages.warning(HTML, tree, "dc.tag.code.within.code"); break; } } } return super.visitLiteral(tree, ignore); }
Example #12
Source File: RefactoringVisitor.java From netbeans with Apache License 2.0 | 4 votes |
/** * @since 1.47 */ @Override public DocTree visitLiteral(LiteralTree node, Element p) { return docScanner.visitLiteral(node, p, null); }
Example #13
Source File: RefactoringVisitor.java From netbeans with Apache License 2.0 | 4 votes |
@Override public DocTree visitLiteral(LiteralTree node, Element p) { return instance.visitLiteral(node, p); }
Example #14
Source File: RefactoringVisitor.java From netbeans with Apache License 2.0 | 4 votes |
public DocTree visitLiteral(LiteralTree node, Element p, Void ignore) { return super.visitLiteral(node, p); }
Example #15
Source File: Analyzer.java From netbeans with Apache License 2.0 | 4 votes |
@Override public Void visitLiteral(LiteralTree node, List<ErrorDescription> errors) { return super.visitLiteral(node, errors); }
Example #16
Source File: ImmutableDocTreeTranslator.java From netbeans with Apache License 2.0 | 4 votes |
@Override public DocTree visitLiteral(LiteralTree tree, Object p) { return rewriteChildren(tree); }
Example #17
Source File: JavadocFormatter.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
@Override @DefinedBy(Api.COMPILER_TREE) public Object visitLiteral(LiteralTree node, Object p) { return scan(node.getBody(), p); }
Example #18
Source File: DocTreeFactory.java From openjdk-jdk9 with GNU General Public License v2.0 | 2 votes |
/** * Create a new {@code CodeTree} object, to represent a {@code {@code } } tag. * @param text the content of the tag * @return a {@code CodeTree} object */ LiteralTree newCodeTree(TextTree text);
Example #19
Source File: DocTreeFactory.java From openjdk-jdk9 with GNU General Public License v2.0 | 2 votes |
/** * Create a new {@code LiteralTree} object, to represent a {@code {@literal } } tag. * @param text the content of the tag * @return a {@code LiteralTree} object */ LiteralTree newLiteralTree(TextTree text);
Example #20
Source File: DocTreeFactory.java From lua-for-android with BSD 3-Clause "New" or "Revised" License | 2 votes |
/** * Create a new {@code LiteralTree} object, to represent a {@code {@literal } } tag. * @param text the content of the tag * @return a {@code LiteralTree} object */ LiteralTree newLiteralTree(TextTree text);
Example #21
Source File: DocTreeFactory.java From lua-for-android with BSD 3-Clause "New" or "Revised" License | 2 votes |
/** * Create a new {@code CodeTree} object, to represent a {@code {@code } } tag. * @param text the content of the tag * @return a {@code CodeTree} object */ LiteralTree newCodeTree(TextTree text);