com.sun.tools.doclets.formats.html.markup.StringContent Java Examples

The following examples show how to use com.sun.tools.doclets.formats.html.markup.StringContent. 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: SarlFieldWriter.java    From sarl with Apache License 2.0 6 votes vote down vote up
@Override
public Content getSignature(FieldDoc field) {
	final Content pre = new HtmlTree(HtmlTag.PRE);
	addAnnotations(field, pre);
	addModifiers(field, pre);
	if ((field.modifierSpecifier() & Modifier.FINAL) != 0) {
		pre.addContent(Utils.keyword(Utils.getKeywords().getValKeyword()));
	} else {
		pre.addContent(Utils.keyword(Utils.getKeywords().getVarKeyword()));
	}
	pre.addContent(this.writer.getSpace());
	if (this.configuration.linksource) {
		final Content fieldName = new StringContent(field.name());
		this.writer.addSrcLink(field, fieldName, pre);
	} else {
		addName(field.name(), pre);
	}
	pre.addContent(this.writer.getSpace());
	pre.addContent(Utils.getKeywords().getColonKeyword());
	pre.addContent(" "); //$NON-NLS-1$
	final  Content fieldlink = this.writer.getLink(new LinkInfoImpl(
			this.configuration, LinkInfoImpl.Kind.MEMBER, field.type()));
	pre.addContent(fieldlink);
	return pre;
}
 
Example #2
Source File: SarlMethodWriter.java    From sarl with Apache License 2.0 6 votes vote down vote up
@Override
public Content getSignature(MethodDoc method) {
	final Content pre = new HtmlTree(HtmlTag.PRE);
	addAnnotations(method, pre);
	addModifiers(method, pre);
	pre.addContent(Utils.keyword(Utils.getKeywords().getDefKeyword()));
	pre.addContent(this.writer.getSpace());
	if (this.configuration.linksource) {
		final Content methodName = new StringContent(method.name());
		this.writer.addSrcLink(method, methodName, pre);
	} else {
		addName(method.name(), pre);
	}
	final int indent = pre.charCount();
	addParameters(method, pre, indent);
	addReturnType(method, pre);
	addTypeParameters(method, pre);
	addExceptions(method, pre, indent);
	return pre;
}
 
Example #3
Source File: TagletWriterImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Content returnTagOutput(Tag returnTag) {
    ContentBuilder result = new ContentBuilder();
    result.addContent(HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.returnLabel,
            new StringContent(configuration.getText("doclet.Returns")))));
    result.addContent(HtmlTree.DD(htmlWriter.commentTagsToContent(
            returnTag, null, returnTag.inlineTags(), false)));
    return result;
}
 
Example #4
Source File: TagletWriterImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Content getDocRootOutput() {
    String path;
    if (htmlWriter.pathToRoot.isEmpty())
        path = ".";
    else
        path = htmlWriter.pathToRoot.getPath();
    return new StringContent(path);
}
 
Example #5
Source File: TagletWriterImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Content getDocRootOutput() {
    String path;
    if (htmlWriter.pathToRoot.isEmpty())
        path = ".";
    else
        path = htmlWriter.pathToRoot.getPath();
    return new StringContent(path);
}
 
Example #6
Source File: TagletWriterImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Content deprecatedTagOutput(Doc doc) {
    ContentBuilder result = new ContentBuilder();
    Tag[] deprs = doc.tags("deprecated");
    if (doc instanceof ClassDoc) {
        if (Util.isDeprecated((ProgramElementDoc) doc)) {
            result.addContent(HtmlTree.SPAN(HtmlStyle.deprecatedLabel,
                    new StringContent(configuration.getText("doclet.Deprecated"))));
            result.addContent(RawHtml.nbsp);
            if (deprs.length > 0) {
                Tag[] commentTags = deprs[0].inlineTags();
                if (commentTags.length > 0) {
                    result.addContent(commentTagsToOutput(null, doc,
                        deprs[0].inlineTags(), false)
                    );
                }
            }
        }
    } else {
        MemberDoc member = (MemberDoc) doc;
        if (Util.isDeprecated((ProgramElementDoc) doc)) {
            result.addContent(HtmlTree.SPAN(HtmlStyle.deprecatedLabel,
                    new StringContent(configuration.getText("doclet.Deprecated"))));
            result.addContent(RawHtml.nbsp);
            if (deprs.length > 0) {
                Content body = commentTagsToOutput(null, doc,
                    deprs[0].inlineTags(), false);
                if (!body.isEmpty())
                    result.addContent(HtmlTree.SPAN(HtmlStyle.deprecationComment, body));
            }
        } else {
            if (Util.isDeprecated(member.containingClass())) {
                result.addContent(HtmlTree.SPAN(HtmlStyle.deprecatedLabel,
                        new StringContent(configuration.getText("doclet.Deprecated"))));
                result.addContent(RawHtml.nbsp);
            }
        }
    }
    return result;
}
 
Example #7
Source File: TagletWriterImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Content returnTagOutput(Tag returnTag) {
    ContentBuilder result = new ContentBuilder();
    result.addContent(HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.returnLabel,
            new StringContent(configuration.getText("doclet.Returns")))));
    result.addContent(HtmlTree.DD(htmlWriter.commentTagsToContent(
            returnTag, null, returnTag.inlineTags(), false)));
    return result;
}
 
Example #8
Source File: TagletWriterImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Content getDocRootOutput() {
    String path;
    if (htmlWriter.pathToRoot.isEmpty())
        path = ".";
    else
        path = htmlWriter.pathToRoot.getPath();
    return new StringContent(path);
}
 
Example #9
Source File: TagletWriterImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Content deprecatedTagOutput(Doc doc) {
    ContentBuilder result = new ContentBuilder();
    Tag[] deprs = doc.tags("deprecated");
    if (doc instanceof ClassDoc) {
        if (utils.isDeprecated((ProgramElementDoc) doc)) {
            result.addContent(HtmlTree.SPAN(HtmlStyle.deprecatedLabel,
                    new StringContent(configuration.getText("doclet.Deprecated"))));
            result.addContent(RawHtml.nbsp);
            if (deprs.length > 0) {
                Tag[] commentTags = deprs[0].inlineTags();
                if (commentTags.length > 0) {
                    result.addContent(commentTagsToOutput(null, doc,
                        deprs[0].inlineTags(), false)
                    );
                }
            }
        }
    } else {
        MemberDoc member = (MemberDoc) doc;
        if (utils.isDeprecated((ProgramElementDoc) doc)) {
            result.addContent(HtmlTree.SPAN(HtmlStyle.deprecatedLabel,
                    new StringContent(configuration.getText("doclet.Deprecated"))));
            result.addContent(RawHtml.nbsp);
            if (deprs.length > 0) {
                Content body = commentTagsToOutput(null, doc,
                    deprs[0].inlineTags(), false);
                if (!body.isEmpty())
                    result.addContent(HtmlTree.SPAN(HtmlStyle.deprecationComment, body));
            }
        } else {
            if (utils.isDeprecated(member.containingClass())) {
                result.addContent(HtmlTree.SPAN(HtmlStyle.deprecatedLabel,
                        new StringContent(configuration.getText("doclet.Deprecated"))));
                result.addContent(RawHtml.nbsp);
            }
        }
    }
    return result;
}
 
Example #10
Source File: TagletWriterImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Content returnTagOutput(Tag returnTag) {
    ContentBuilder result = new ContentBuilder();
    result.addContent(HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.returnLabel,
            new StringContent(configuration.getText("doclet.Returns")))));
    result.addContent(HtmlTree.DD(htmlWriter.commentTagsToContent(
            returnTag, null, returnTag.inlineTags(), false)));
    return result;
}
 
Example #11
Source File: TagletWriterImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Content getDocRootOutput() {
    String path;
    if (htmlWriter.pathToRoot.isEmpty())
        path = ".";
    else
        path = htmlWriter.pathToRoot.getPath();
    return new StringContent(path);
}
 
Example #12
Source File: TagletWriterImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Content deprecatedTagOutput(Doc doc) {
    ContentBuilder result = new ContentBuilder();
    Tag[] deprs = doc.tags("deprecated");
    if (doc instanceof ClassDoc) {
        if (Util.isDeprecated((ProgramElementDoc) doc)) {
            result.addContent(HtmlTree.SPAN(HtmlStyle.deprecatedLabel,
                    new StringContent(configuration.getText("doclet.Deprecated"))));
            result.addContent(RawHtml.nbsp);
            if (deprs.length > 0) {
                Tag[] commentTags = deprs[0].inlineTags();
                if (commentTags.length > 0) {
                    result.addContent(commentTagsToOutput(null, doc,
                        deprs[0].inlineTags(), false)
                    );
                }
            }
        }
    } else {
        MemberDoc member = (MemberDoc) doc;
        if (Util.isDeprecated((ProgramElementDoc) doc)) {
            result.addContent(HtmlTree.SPAN(HtmlStyle.deprecatedLabel,
                    new StringContent(configuration.getText("doclet.Deprecated"))));
            result.addContent(RawHtml.nbsp);
            if (deprs.length > 0) {
                Content body = commentTagsToOutput(null, doc,
                    deprs[0].inlineTags(), false);
                if (!body.isEmpty())
                    result.addContent(HtmlTree.SPAN(HtmlStyle.deprecationComment, body));
            }
        } else {
            if (Util.isDeprecated(member.containingClass())) {
                result.addContent(HtmlTree.SPAN(HtmlStyle.deprecatedLabel,
                        new StringContent(configuration.getText("doclet.Deprecated"))));
                result.addContent(RawHtml.nbsp);
            }
        }
    }
    return result;
}
 
Example #13
Source File: TagletWriterImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Content returnTagOutput(Tag returnTag) {
    ContentBuilder result = new ContentBuilder();
    result.addContent(HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.returnLabel,
            new StringContent(configuration.getText("doclet.Returns")))));
    result.addContent(HtmlTree.DD(htmlWriter.commentTagsToContent(
            returnTag, null, returnTag.inlineTags(), false)));
    return result;
}
 
Example #14
Source File: TagletWriterImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Content getDocRootOutput() {
    String path;
    if (htmlWriter.pathToRoot.isEmpty())
        path = ".";
    else
        path = htmlWriter.pathToRoot.getPath();
    return new StringContent(path);
}
 
Example #15
Source File: TagletWriterImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Content deprecatedTagOutput(Doc doc) {
    ContentBuilder result = new ContentBuilder();
    Tag[] deprs = doc.tags("deprecated");
    if (doc instanceof ClassDoc) {
        if (Util.isDeprecated((ProgramElementDoc) doc)) {
            result.addContent(HtmlTree.SPAN(HtmlStyle.deprecatedLabel,
                    new StringContent(configuration.getText("doclet.Deprecated"))));
            result.addContent(RawHtml.nbsp);
            if (deprs.length > 0) {
                Tag[] commentTags = deprs[0].inlineTags();
                if (commentTags.length > 0) {
                    result.addContent(commentTagsToOutput(null, doc,
                        deprs[0].inlineTags(), false)
                    );
                }
            }
        }
    } else {
        MemberDoc member = (MemberDoc) doc;
        if (Util.isDeprecated((ProgramElementDoc) doc)) {
            result.addContent(HtmlTree.SPAN(HtmlStyle.deprecatedLabel,
                    new StringContent(configuration.getText("doclet.Deprecated"))));
            result.addContent(RawHtml.nbsp);
            if (deprs.length > 0) {
                Content body = commentTagsToOutput(null, doc,
                    deprs[0].inlineTags(), false);
                if (!body.isEmpty())
                    result.addContent(HtmlTree.SPAN(HtmlStyle.deprecationComment, body));
            }
        } else {
            if (Util.isDeprecated(member.containingClass())) {
                result.addContent(HtmlTree.SPAN(HtmlStyle.deprecatedLabel,
                        new StringContent(configuration.getText("doclet.Deprecated"))));
                result.addContent(RawHtml.nbsp);
            }
        }
    }
    return result;
}
 
Example #16
Source File: TagletWriterImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Content returnTagOutput(Tag returnTag) {
    ContentBuilder result = new ContentBuilder();
    result.addContent(HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.returnLabel,
            new StringContent(configuration.getText("doclet.Returns")))));
    result.addContent(HtmlTree.DD(htmlWriter.commentTagsToContent(
            returnTag, null, returnTag.inlineTags(), false)));
    return result;
}
 
Example #17
Source File: TagletWriterImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Content getDocRootOutput() {
    String path;
    if (htmlWriter.pathToRoot.isEmpty())
        path = ".";
    else
        path = htmlWriter.pathToRoot.getPath();
    return new StringContent(path);
}
 
Example #18
Source File: TagletWriterImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Content deprecatedTagOutput(Doc doc) {
    ContentBuilder result = new ContentBuilder();
    Tag[] deprs = doc.tags("deprecated");
    if (doc instanceof ClassDoc) {
        if (Util.isDeprecated((ProgramElementDoc) doc)) {
            result.addContent(HtmlTree.SPAN(HtmlStyle.deprecatedLabel,
                    new StringContent(configuration.getText("doclet.Deprecated"))));
            result.addContent(RawHtml.nbsp);
            if (deprs.length > 0) {
                Tag[] commentTags = deprs[0].inlineTags();
                if (commentTags.length > 0) {
                    result.addContent(commentTagsToOutput(null, doc,
                        deprs[0].inlineTags(), false)
                    );
                }
            }
        }
    } else {
        MemberDoc member = (MemberDoc) doc;
        if (Util.isDeprecated((ProgramElementDoc) doc)) {
            result.addContent(HtmlTree.SPAN(HtmlStyle.deprecatedLabel,
                    new StringContent(configuration.getText("doclet.Deprecated"))));
            result.addContent(RawHtml.nbsp);
            if (deprs.length > 0) {
                Content body = commentTagsToOutput(null, doc,
                    deprs[0].inlineTags(), false);
                if (!body.isEmpty())
                    result.addContent(HtmlTree.SPAN(HtmlStyle.deprecationComment, body));
            }
        } else {
            if (Util.isDeprecated(member.containingClass())) {
                result.addContent(HtmlTree.SPAN(HtmlStyle.deprecatedLabel,
                        new StringContent(configuration.getText("doclet.Deprecated"))));
                result.addContent(RawHtml.nbsp);
            }
        }
    }
    return result;
}
 
Example #19
Source File: TagletWriterImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Content returnTagOutput(Tag returnTag) {
    ContentBuilder result = new ContentBuilder();
    result.addContent(HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.returnLabel,
            new StringContent(configuration.getText("doclet.Returns")))));
    result.addContent(HtmlTree.DD(htmlWriter.commentTagsToContent(
            returnTag, null, returnTag.inlineTags(), false)));
    return result;
}
 
Example #20
Source File: TagletWriterImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Content deprecatedTagOutput(Doc doc) {
    ContentBuilder result = new ContentBuilder();
    Tag[] deprs = doc.tags("deprecated");
    if (doc instanceof ClassDoc) {
        if (Util.isDeprecated((ProgramElementDoc) doc)) {
            result.addContent(HtmlTree.SPAN(HtmlStyle.deprecatedLabel,
                    new StringContent(configuration.getText("doclet.Deprecated"))));
            result.addContent(RawHtml.nbsp);
            if (deprs.length > 0) {
                Tag[] commentTags = deprs[0].inlineTags();
                if (commentTags.length > 0) {
                    result.addContent(commentTagsToOutput(null, doc,
                        deprs[0].inlineTags(), false)
                    );
                }
            }
        }
    } else {
        MemberDoc member = (MemberDoc) doc;
        if (Util.isDeprecated((ProgramElementDoc) doc)) {
            result.addContent(HtmlTree.SPAN(HtmlStyle.deprecatedLabel,
                    new StringContent(configuration.getText("doclet.Deprecated"))));
            result.addContent(RawHtml.nbsp);
            if (deprs.length > 0) {
                Content body = commentTagsToOutput(null, doc,
                    deprs[0].inlineTags(), false);
                if (!body.isEmpty())
                    result.addContent(HtmlTree.SPAN(HtmlStyle.deprecationComment, body));
            }
        } else {
            if (Util.isDeprecated(member.containingClass())) {
                result.addContent(HtmlTree.SPAN(HtmlStyle.deprecatedLabel,
                        new StringContent(configuration.getText("doclet.Deprecated"))));
                result.addContent(RawHtml.nbsp);
            }
        }
    }
    return result;
}
 
Example #21
Source File: TagletWriterImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Content deprecatedTagOutput(Doc doc) {
    ContentBuilder result = new ContentBuilder();
    Tag[] deprs = doc.tags("deprecated");
    if (doc instanceof ClassDoc) {
        if (Util.isDeprecated((ProgramElementDoc) doc)) {
            result.addContent(HtmlTree.SPAN(HtmlStyle.deprecatedLabel,
                    new StringContent(configuration.getText("doclet.Deprecated"))));
            result.addContent(RawHtml.nbsp);
            if (deprs.length > 0) {
                Tag[] commentTags = deprs[0].inlineTags();
                if (commentTags.length > 0) {
                    result.addContent(commentTagsToOutput(null, doc,
                        deprs[0].inlineTags(), false)
                    );
                }
            }
        }
    } else {
        MemberDoc member = (MemberDoc) doc;
        if (Util.isDeprecated((ProgramElementDoc) doc)) {
            result.addContent(HtmlTree.SPAN(HtmlStyle.deprecatedLabel,
                    new StringContent(configuration.getText("doclet.Deprecated"))));
            result.addContent(RawHtml.nbsp);
            if (deprs.length > 0) {
                Content body = commentTagsToOutput(null, doc,
                    deprs[0].inlineTags(), false);
                if (!body.isEmpty())
                    result.addContent(HtmlTree.SPAN(HtmlStyle.deprecationComment, body));
            }
        } else {
            if (Util.isDeprecated(member.containingClass())) {
                result.addContent(HtmlTree.SPAN(HtmlStyle.deprecatedLabel,
                        new StringContent(configuration.getText("doclet.Deprecated"))));
                result.addContent(RawHtml.nbsp);
            }
        }
    }
    return result;
}
 
Example #22
Source File: TagletWriterImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Content deprecatedTagOutput(Doc doc) {
    ContentBuilder result = new ContentBuilder();
    Tag[] deprs = doc.tags("deprecated");
    if (doc instanceof ClassDoc) {
        if (Util.isDeprecated((ProgramElementDoc) doc)) {
            result.addContent(HtmlTree.SPAN(HtmlStyle.deprecatedLabel,
                    new StringContent(configuration.getText("doclet.Deprecated"))));
            result.addContent(RawHtml.nbsp);
            if (deprs.length > 0) {
                Tag[] commentTags = deprs[0].inlineTags();
                if (commentTags.length > 0) {
                    result.addContent(commentTagsToOutput(null, doc,
                        deprs[0].inlineTags(), false)
                    );
                }
            }
        }
    } else {
        MemberDoc member = (MemberDoc) doc;
        if (Util.isDeprecated((ProgramElementDoc) doc)) {
            result.addContent(HtmlTree.SPAN(HtmlStyle.deprecatedLabel,
                    new StringContent(configuration.getText("doclet.Deprecated"))));
            result.addContent(RawHtml.nbsp);
            if (deprs.length > 0) {
                Content body = commentTagsToOutput(null, doc,
                    deprs[0].inlineTags(), false);
                if (!body.isEmpty())
                    result.addContent(HtmlTree.SPAN(HtmlStyle.deprecationComment, body));
            }
        } else {
            if (Util.isDeprecated(member.containingClass())) {
                result.addContent(HtmlTree.SPAN(HtmlStyle.deprecatedLabel,
                        new StringContent(configuration.getText("doclet.Deprecated"))));
                result.addContent(RawHtml.nbsp);
            }
        }
    }
    return result;
}
 
Example #23
Source File: TagletWriterImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Content getDocRootOutput() {
    String path;
    if (htmlWriter.pathToRoot.isEmpty())
        path = ".";
    else
        path = htmlWriter.pathToRoot.getPath();
    return new StringContent(path);
}
 
Example #24
Source File: TagletWriterImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Content getDocRootOutput() {
    String path;
    if (htmlWriter.pathToRoot.isEmpty())
        path = ".";
    else
        path = htmlWriter.pathToRoot.getPath();
    return new StringContent(path);
}
 
Example #25
Source File: TagletWriterImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Content returnTagOutput(Tag returnTag) {
    ContentBuilder result = new ContentBuilder();
    result.addContent(HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.returnLabel,
            new StringContent(configuration.getText("doclet.Returns")))));
    result.addContent(HtmlTree.DD(htmlWriter.commentTagsToContent(
            returnTag, null, returnTag.inlineTags(), false)));
    return result;
}
 
Example #26
Source File: TagletWriterImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Content returnTagOutput(Tag returnTag) {
    ContentBuilder result = new ContentBuilder();
    result.addContent(HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.returnLabel,
            new StringContent(configuration.getText("doclet.Returns")))));
    result.addContent(HtmlTree.DD(htmlWriter.commentTagsToContent(
            returnTag, null, returnTag.inlineTags(), false)));
    return result;
}
 
Example #27
Source File: TagletWriterImpl.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
protected Content codeTagOutput(Tag tag) {
    Content result = HtmlTree.CODE(new StringContent(Util.normalizeNewlines(tag.text())));
    return result;
}
 
Example #28
Source File: TagletWriterImpl.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Content getThrowsHeader() {
    HtmlTree result = HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.throwsLabel,
            new StringContent(configuration.getText("doclet.Throws"))));
    return result;
}
 
Example #29
Source File: TagletWriterImpl.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
protected Content codeTagOutput(Tag tag) {
    Content result = HtmlTree.CODE(new StringContent(Util.normalizeNewlines(tag.text())));
    return result;
}
 
Example #30
Source File: TagletWriterImpl.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
protected Content codeTagOutput(Tag tag) {
    Content result = HtmlTree.CODE(new StringContent(Util.normalizeNewlines(tag.text())));
    return result;
}