当前位置: 首页>>代码示例>>Java>>正文


Java SerializedFormBuilder类代码示例

本文整理汇总了Java中com.sun.tools.doclets.internal.toolkit.builders.SerializedFormBuilder的典型用法代码示例。如果您正苦于以下问题:Java SerializedFormBuilder类的具体用法?Java SerializedFormBuilder怎么用?Java SerializedFormBuilder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


SerializedFormBuilder类属于com.sun.tools.doclets.internal.toolkit.builders包,在下文中一共展示了SerializedFormBuilder类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: seeTagOutput

import com.sun.tools.doclets.internal.toolkit.builders.SerializedFormBuilder; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
public TagletOutput seeTagOutput(Doc holder, SeeTag[] seeTags) {
    String result = "";
    if (seeTags.length > 0) {
        result = addSeeHeader(result);
        for (int i = 0; i < seeTags.length; ++i) {
            if (i > 0) {
                result += ", " + DocletConstants.NL;
            }
            result += htmlWriter.seeTagToString(seeTags[i]);
        }
    }
    if (holder.isField() && ((FieldDoc)holder).constantValue() != null &&
            htmlWriter instanceof ClassWriterImpl) {
        //Automatically add link to constant values page for constant fields.
        result = addSeeHeader(result);
        result += htmlWriter.getHyperLink(htmlWriter.relativePath +
            ConfigurationImpl.CONSTANTS_FILE_NAME
            + "#" + ((ClassWriterImpl) htmlWriter).getClassDoc().qualifiedName()
            + "." + ((FieldDoc) holder).name(),
            htmlWriter.configuration.getText("doclet.Constants_Summary"));
    }
    if (holder.isClass() && ((ClassDoc)holder).isSerializable()) {
        //Automatically add link to serialized form page for serializable classes.
        if (!(SerializedFormBuilder.serialInclude(holder) &&
                  SerializedFormBuilder.serialInclude(((ClassDoc)holder).containingPackage()))) {
            return result.equals("") ? null : new TagletOutputImpl(result);
        }
        result = addSeeHeader(result);
        result += htmlWriter.getHyperLink(htmlWriter.relativePath + "serialized-form.html",
            ((ClassDoc)holder).qualifiedName(), htmlWriter.configuration.getText("doclet.Serialized_Form"), false);
    }
    return result.equals("") ? null : new TagletOutputImpl(result);
}
 
开发者ID:unktomi,项目名称:form-follows-function,代码行数:37,代码来源:TagletWriterImpl.java

示例2: seeTagOutput

import com.sun.tools.doclets.internal.toolkit.builders.SerializedFormBuilder; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
public TagletOutput seeTagOutput(Doc holder, SeeTag[] seeTags) {
    String result = "";
    if (seeTags.length > 0) {
        result = addSeeHeader(result);
        for (int i = 0; i < seeTags.length; ++i) {
            if (i > 0) {
                result += ", " + DocletConstants.NL;
            }
            result += htmlWriter.seeTagToString(seeTags[i]);
        }
    }
    if (holder.isField() && ((FieldDoc)holder).constantValue() != null &&
            htmlWriter instanceof ClassWriterImpl) {
        //Automatically add link to constant values page for constant fields.
        result = addSeeHeader(result);
        result += htmlWriter.getHyperLinkString(htmlWriter.relativePath +
            ConfigurationImpl.CONSTANTS_FILE_NAME
            + "#" + ((ClassWriterImpl) htmlWriter).getClassDoc().qualifiedName()
            + "." + ((FieldDoc) holder).name(),
            htmlWriter.configuration.getText("doclet.Constants_Summary"));
    }
    if (holder.isClass() && ((ClassDoc)holder).isSerializable()) {
        //Automatically add link to serialized form page for serializable classes.
        if ((SerializedFormBuilder.serialInclude(holder) &&
                  SerializedFormBuilder.serialInclude(((ClassDoc)holder).containingPackage()))) {
            result = addSeeHeader(result);
            result += htmlWriter.getHyperLinkString(htmlWriter.relativePath + "serialized-form.html",
                    ((ClassDoc)holder).qualifiedName(), htmlWriter.configuration.getText("doclet.Serialized_Form"), false);
        }
    }
    return result.equals("") ? null : new TagletOutputImpl(result + "</dd>");
}
 
开发者ID:aducode,项目名称:openjdk-source-code-learn,代码行数:36,代码来源:TagletWriterImpl.java


注:本文中的com.sun.tools.doclets.internal.toolkit.builders.SerializedFormBuilder类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。