Java Code Examples for com.sun.tools.doclets.formats.html.markup.ContentBuilder

The following examples show how to use com.sun.tools.doclets.formats.html.markup.ContentBuilder. These examples are extracted from open source projects. 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
/**
 * {@inheritDoc}
 */
public Content throwsTagOutput(ThrowsTag throwsTag) {
    ContentBuilder body = new ContentBuilder();
    Content excName = (throwsTag.exceptionType() == null) ?
            new RawHtml(throwsTag.exceptionName()) :
            htmlWriter.getLink(new LinkInfoImpl(configuration, LinkInfoImpl.Kind.MEMBER,
            throwsTag.exceptionType()));
    body.addContent(HtmlTree.CODE(excName));
    Content desc = htmlWriter.commentTagsToContent(throwsTag, null,
        throwsTag.inlineTags(), false);
    if (desc != null && !desc.isEmpty()) {
        body.addContent(" - ");
        body.addContent(desc);
    }
    HtmlTree result = HtmlTree.DD(body);
    return result;
}
 
Example 2
/**
 * {@inheritDoc}
 */
public Content throwsTagOutput(ThrowsTag throwsTag) {
    ContentBuilder body = new ContentBuilder();
    Content excName = (throwsTag.exceptionType() == null) ?
            new RawHtml(throwsTag.exceptionName()) :
            htmlWriter.getLink(new LinkInfoImpl(configuration, LinkInfoImpl.Kind.MEMBER,
            throwsTag.exceptionType()));
    body.addContent(HtmlTree.CODE(excName));
    Content desc = htmlWriter.commentTagsToContent(throwsTag, null,
        throwsTag.inlineTags(), false);
    if (desc != null && !desc.isEmpty()) {
        body.addContent(" - ");
        body.addContent(desc);
    }
    HtmlTree result = HtmlTree.DD(body);
    return result;
}
 
Example 3
Source Project: jdk8u60   Source File: TagletWriterImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Content throwsTagOutput(ThrowsTag throwsTag) {
    ContentBuilder body = new ContentBuilder();
    Content excName = (throwsTag.exceptionType() == null) ?
            new RawHtml(throwsTag.exceptionName()) :
            htmlWriter.getLink(new LinkInfoImpl(configuration, LinkInfoImpl.Kind.MEMBER,
            throwsTag.exceptionType()));
    body.addContent(HtmlTree.CODE(excName));
    Content desc = htmlWriter.commentTagsToContent(throwsTag, null,
        throwsTag.inlineTags(), false);
    if (desc != null && !desc.isEmpty()) {
        body.addContent(" - ");
        body.addContent(desc);
    }
    HtmlTree result = HtmlTree.DD(body);
    return result;
}
 
Example 4
Source Project: openjdk-8   Source File: TagletWriterImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Content throwsTagOutput(ThrowsTag throwsTag) {
    ContentBuilder body = new ContentBuilder();
    Content excName = (throwsTag.exceptionType() == null) ?
            new RawHtml(throwsTag.exceptionName()) :
            htmlWriter.getLink(new LinkInfoImpl(configuration, LinkInfoImpl.Kind.MEMBER,
            throwsTag.exceptionType()));
    body.addContent(HtmlTree.CODE(excName));
    Content desc = htmlWriter.commentTagsToContent(throwsTag, null,
        throwsTag.inlineTags(), false);
    if (desc != null && !desc.isEmpty()) {
        body.addContent(" - ");
        body.addContent(desc);
    }
    HtmlTree result = HtmlTree.DD(body);
    return result;
}
 
Example 5
/**
 * {@inheritDoc}
 */
public Content throwsTagOutput(ThrowsTag throwsTag) {
    ContentBuilder body = new ContentBuilder();
    Content excName = (throwsTag.exceptionType() == null) ?
            new RawHtml(throwsTag.exceptionName()) :
            htmlWriter.getLink(new LinkInfoImpl(configuration, LinkInfoImpl.Kind.MEMBER,
            throwsTag.exceptionType()));
    body.addContent(HtmlTree.CODE(excName));
    Content desc = htmlWriter.commentTagsToContent(throwsTag, null,
        throwsTag.inlineTags(), false);
    if (desc != null && !desc.isEmpty()) {
        body.addContent(" - ");
        body.addContent(desc);
    }
    HtmlTree result = HtmlTree.DD(body);
    return result;
}
 
Example 6
/**
 * {@inheritDoc}
 */
public Content throwsTagOutput(ThrowsTag throwsTag) {
    ContentBuilder body = new ContentBuilder();
    Content excName = (throwsTag.exceptionType() == null) ?
            new RawHtml(throwsTag.exceptionName()) :
            htmlWriter.getLink(new LinkInfoImpl(configuration, LinkInfoImpl.Kind.MEMBER,
            throwsTag.exceptionType()));
    body.addContent(HtmlTree.CODE(excName));
    Content desc = htmlWriter.commentTagsToContent(throwsTag, null,
        throwsTag.inlineTags(), false);
    if (desc != null && !desc.isEmpty()) {
        body.addContent(" - ");
        body.addContent(desc);
    }
    HtmlTree result = HtmlTree.DD(body);
    return result;
}
 
Example 7
/**
 * {@inheritDoc}
 */
public Content throwsTagOutput(ThrowsTag throwsTag) {
    ContentBuilder body = new ContentBuilder();
    Content excName = (throwsTag.exceptionType() == null) ?
            new RawHtml(throwsTag.exceptionName()) :
            htmlWriter.getLink(new LinkInfoImpl(configuration, LinkInfoImpl.Kind.MEMBER,
            throwsTag.exceptionType()));
    body.addContent(HtmlTree.CODE(excName));
    Content desc = htmlWriter.commentTagsToContent(throwsTag, null,
        throwsTag.inlineTags(), false);
    if (desc != null && !desc.isEmpty()) {
        body.addContent(" - ");
        body.addContent(desc);
    }
    HtmlTree result = HtmlTree.DD(body);
    return result;
}
 
Example 8
Source Project: hottub   Source File: TagletWriterImpl.java    License: GNU General Public License v2.0 6 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Content throwsTagOutput(ThrowsTag throwsTag) {
    ContentBuilder body = new ContentBuilder();
    Content excName = (throwsTag.exceptionType() == null) ?
            new RawHtml(throwsTag.exceptionName()) :
            htmlWriter.getLink(new LinkInfoImpl(configuration, LinkInfoImpl.Kind.MEMBER,
            throwsTag.exceptionType()));
    body.addContent(HtmlTree.CODE(excName));
    Content desc = htmlWriter.commentTagsToContent(throwsTag, null,
        throwsTag.inlineTags(), false);
    if (desc != null && !desc.isEmpty()) {
        body.addContent(" - ");
        body.addContent(desc);
    }
    HtmlTree result = HtmlTree.DD(body);
    return result;
}
 
Example 9
/**
 * {@inheritDoc}
 */
public Content simpleTagOutput(Tag[] simpleTags, String header) {
    ContentBuilder result = new ContentBuilder();
    result.addContent(HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.simpleTagLabel, new RawHtml(header))));
    ContentBuilder body = new ContentBuilder();
    for (int i = 0; i < simpleTags.length; i++) {
        if (i > 0) {
            body.addContent(", ");
        }
        body.addContent(htmlWriter.commentTagsToContent(
                simpleTags[i], null, simpleTags[i].inlineTags(), false));
    }
    result.addContent(HtmlTree.DD(body));
    return result;
}
 
Example 10
/**
 * {@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 11
Source Project: openjdk-8   Source File: TagletWriterImpl.java    License: 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 12
/**
 * {@inheritDoc}
 */
public Content propertyTagOutput(Tag tag, String prefix) {
    Content body = new ContentBuilder();
    body.addContent(new RawHtml(prefix));
    body.addContent(" ");
    body.addContent(HtmlTree.CODE(new RawHtml(tag.text())));
    body.addContent(".");
    Content result = HtmlTree.P(body);
    return result;
}
 
Example 13
/**
 * {@inheritDoc}
 */
public Content simpleTagOutput(Tag[] simpleTags, String header) {
    ContentBuilder result = new ContentBuilder();
    result.addContent(HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.simpleTagLabel, new RawHtml(header))));
    ContentBuilder body = new ContentBuilder();
    for (int i = 0; i < simpleTags.length; i++) {
        if (i > 0) {
            body.addContent(", ");
        }
        body.addContent(htmlWriter.commentTagsToContent(
                simpleTags[i], null, simpleTags[i].inlineTags(), false));
    }
    result.addContent(HtmlTree.DD(body));
    return result;
}
 
Example 14
/**
 * {@inheritDoc}
 */
public Content simpleTagOutput(Tag simpleTag, String header) {
    ContentBuilder result = new ContentBuilder();
    result.addContent(HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.simpleTagLabel, new RawHtml(header))));
    Content body = htmlWriter.commentTagsToContent(
            simpleTag, null, simpleTag.inlineTags(), false);
    result.addContent(HtmlTree.DD(body));
    return result;
}
 
Example 15
/**
 * {@inheritDoc}
 */
public Content propertyTagOutput(Tag tag, String prefix) {
    Content body = new ContentBuilder();
    body.addContent(new RawHtml(prefix));
    body.addContent(" ");
    body.addContent(HtmlTree.CODE(new RawHtml(tag.text())));
    body.addContent(".");
    Content result = HtmlTree.P(body);
    return result;
}
 
Example 16
public Content getTypeAnnotationLinks(LinkInfo linkInfo) {
    ContentBuilder links = new ContentBuilder();
    AnnotationDesc[] annotations;
    if (linkInfo.type instanceof AnnotatedType) {
        annotations = linkInfo.type.asAnnotatedType().annotations();
    } else if (linkInfo.type instanceof TypeVariable) {
        annotations = linkInfo.type.asTypeVariable().annotations();
    } else {
        return links;
    }

    if (annotations.length == 0)
        return links;

    List<Content> annos = m_writer.getAnnotations(0, annotations, false, linkInfo.isJava5DeclarationLocation);

    boolean isFirst = true;
    for (Content anno : annos) {
        if (!isFirst) {
            links.addContent(" ");
        }
        links.addContent(anno);
        isFirst = false;
    }
    if (!annos.isEmpty()) {
        links.addContent(" ");
    }

    return links;
}
 
Example 17
/**
 * {@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 18
Source Project: jdk8u60   Source File: TagletWriterImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Content paramTagOutput(ParamTag paramTag, String paramName) {
    ContentBuilder body = new ContentBuilder();
    body.addContent(HtmlTree.CODE(new RawHtml(paramName)));
    body.addContent(" - ");
    body.addContent(htmlWriter.commentTagsToContent(paramTag, null, paramTag.inlineTags(), false));
    HtmlTree result = HtmlTree.DD(body);
    return result;
}
 
Example 19
Source Project: jdk8u60   Source File: TagletWriterImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Content propertyTagOutput(Tag tag, String prefix) {
    Content body = new ContentBuilder();
    body.addContent(new RawHtml(prefix));
    body.addContent(" ");
    body.addContent(HtmlTree.CODE(new RawHtml(tag.text())));
    body.addContent(".");
    Content result = HtmlTree.P(body);
    return result;
}
 
Example 20
Source Project: jdk8u60   Source File: TagletWriterImpl.java    License: 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 21
Source Project: openjdk-8   Source File: TagletWriterImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Content simpleTagOutput(Tag simpleTag, String header) {
    ContentBuilder result = new ContentBuilder();
    result.addContent(HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.simpleTagLabel, new RawHtml(header))));
    Content body = htmlWriter.commentTagsToContent(
            simpleTag, null, simpleTag.inlineTags(), false);
    result.addContent(HtmlTree.DD(body));
    return result;
}
 
Example 22
Source Project: jdk8u60   Source File: TagletWriterImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Content simpleTagOutput(Tag simpleTag, String header) {
    ContentBuilder result = new ContentBuilder();
    result.addContent(HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.simpleTagLabel, new RawHtml(header))));
    Content body = htmlWriter.commentTagsToContent(
            simpleTag, null, simpleTag.inlineTags(), false);
    result.addContent(HtmlTree.DD(body));
    return result;
}
 
Example 23
Source Project: jdk8u60   Source File: LinkFactoryImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
public Content getTypeAnnotationLinks(LinkInfo linkInfo) {
    ContentBuilder links = new ContentBuilder();
    AnnotationDesc[] annotations;
    if (linkInfo.type instanceof AnnotatedType) {
        annotations = linkInfo.type.asAnnotatedType().annotations();
    } else if (linkInfo.type instanceof TypeVariable) {
        annotations = linkInfo.type.asTypeVariable().annotations();
    } else {
        return links;
    }

    if (annotations.length == 0)
        return links;

    List<Content> annos = m_writer.getAnnotations(0, annotations, false, linkInfo.isJava5DeclarationLocation);

    boolean isFirst = true;
    for (Content anno : annos) {
        if (!isFirst) {
            links.addContent(" ");
        }
        links.addContent(anno);
        isFirst = false;
    }
    if (!annos.isEmpty()) {
        links.addContent(" ");
    }

    return links;
}
 
Example 24
Source Project: openjdk-8   Source File: LinkFactoryImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
public Content getTypeAnnotationLinks(LinkInfo linkInfo) {
    ContentBuilder links = new ContentBuilder();
    AnnotationDesc[] annotations;
    if (linkInfo.type instanceof AnnotatedType) {
        annotations = linkInfo.type.asAnnotatedType().annotations();
    } else if (linkInfo.type instanceof TypeVariable) {
        annotations = linkInfo.type.asTypeVariable().annotations();
    } else {
        return links;
    }

    if (annotations.length == 0)
        return links;

    List<Content> annos = m_writer.getAnnotations(0, annotations, false, linkInfo.isJava5DeclarationLocation);

    boolean isFirst = true;
    for (Content anno : annos) {
        if (!isFirst) {
            links.addContent(" ");
        }
        links.addContent(anno);
        isFirst = false;
    }
    if (!annos.isEmpty()) {
        links.addContent(" ");
    }

    return links;
}
 
Example 25
/**
 * {@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 26
/**
 * {@inheritDoc}
 */
public Content paramTagOutput(ParamTag paramTag, String paramName) {
    ContentBuilder body = new ContentBuilder();
    body.addContent(HtmlTree.CODE(new RawHtml(paramName)));
    body.addContent(" - ");
    body.addContent(htmlWriter.commentTagsToContent(paramTag, null, paramTag.inlineTags(), false));
    HtmlTree result = HtmlTree.DD(body);
    return result;
}
 
Example 27
/**
 * {@inheritDoc}
 */
public Content simpleTagOutput(Tag simpleTag, String header) {
    ContentBuilder result = new ContentBuilder();
    result.addContent(HtmlTree.DT(HtmlTree.SPAN(HtmlStyle.simpleTagLabel, new RawHtml(header))));
    Content body = htmlWriter.commentTagsToContent(
            simpleTag, null, simpleTag.inlineTags(), false);
    result.addContent(HtmlTree.DD(body));
    return result;
}
 
Example 28
public Content getTypeAnnotationLinks(LinkInfo linkInfo) {
    ContentBuilder links = new ContentBuilder();
    AnnotationDesc[] annotations;
    if (linkInfo.type instanceof AnnotatedType) {
        annotations = linkInfo.type.asAnnotatedType().annotations();
    } else if (linkInfo.type instanceof TypeVariable) {
        annotations = linkInfo.type.asTypeVariable().annotations();
    } else {
        return links;
    }

    if (annotations.length == 0)
        return links;

    List<Content> annos = m_writer.getAnnotations(0, annotations, false, linkInfo.isJava5DeclarationLocation);

    boolean isFirst = true;
    for (Content anno : annos) {
        if (!isFirst) {
            links.addContent(" ");
        }
        links.addContent(anno);
        isFirst = false;
    }
    if (!annos.isEmpty()) {
        links.addContent(" ");
    }

    return links;
}
 
Example 29
/**
 * {@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 30
Source Project: openjdk-8   Source File: TagletWriterImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Content propertyTagOutput(Tag tag, String prefix) {
    Content body = new ContentBuilder();
    body.addContent(new RawHtml(prefix));
    body.addContent(" ");
    body.addContent(HtmlTree.CODE(new RawHtml(tag.text())));
    body.addContent(".");
    Content result = HtmlTree.P(body);
    return result;
}