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


Java ConfigurationImpl类代码示例

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


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

示例1: printFramesDocument

import com.sun.tools.doclets.formats.html.ConfigurationImpl; //导入依赖的package包/类
/**
 * Print the frames version of the Html file header.
 * Called only when generating an HTML frames file.
 *
 * @param title Title of this HTML document
 * @param configuration the configuration object
 * @param body the body content tree to be added to the HTML document
 */
public void printFramesDocument(String title, ConfigurationImpl configuration,
        HtmlTree body) throws IOException {
    Content htmlDocType = configuration.isOutputHtml5()
            ? DocType.HTML5
            : DocType.TRANSITIONAL;
    Content htmlComment = new Comment(configuration.getText("doclet.New_Page"));
    Content head = new HtmlTree(HtmlTag.HEAD);
    head.addContent(getGeneratedBy(!configuration.notimestamp));
    Content windowTitle = HtmlTree.TITLE(new StringContent(title));
    head.addContent(windowTitle);
    Content meta = HtmlTree.META("Content-Type", CONTENT_TYPE,
            (configuration.charset.length() > 0) ?
                    configuration.charset : HtmlConstants.HTML_DEFAULT_CHARSET);
    head.addContent(meta);
    head.addContent(getStyleSheetProperties(configuration));
    head.addContent(getFramesJavaScript());
    Content htmlTree = HtmlTree.HTML(configuration.getLocale().getLanguage(),
            head, body);
    Content htmlDocument = new HtmlDocument(htmlDocType,
            htmlComment, htmlTree);
    write(htmlDocument);
}
 
开发者ID:campolake,项目名称:openjdk9,代码行数:31,代码来源:HtmlDocWriter.java

示例2: getStyleSheetProperties

import com.sun.tools.doclets.formats.html.ConfigurationImpl; //导入依赖的package包/类
/**
 * Returns a link to the stylesheet file.
 *
 * @return an HtmlTree for the lINK tag which provides the stylesheet location
 */
public HtmlTree getStyleSheetProperties(ConfigurationImpl configuration) {
    String stylesheetfile = configuration.stylesheetfile;
    DocPath stylesheet;
    if (stylesheetfile.isEmpty()) {
        stylesheet = DocPaths.STYLESHEET;
    } else {
        DocFile file = DocFile.createFileForInput(configuration, stylesheetfile);
        stylesheet = DocPath.create(file.getName());
    }
    HtmlTree link = HtmlTree.LINK("stylesheet", "text/css",
            pathToRoot.resolve(stylesheet).getPath(),
            "Style");
    return link;
}
 
开发者ID:campolake,项目名称:openjdk9,代码行数:20,代码来源:HtmlDocWriter.java

示例3: startGeneration3

import com.sun.tools.doclets.formats.html.ConfigurationImpl; //导入依赖的package包/类
private boolean startGeneration3(RootDoc root) throws Exception {
  configuration = ConfigurationImpl.getInstance();
  configuration.root = root;

  if (root.classes().length == 0) {
    configuration.message.
        error("doclet.No_Public_Classes_To_Document");
    return false;
  }
  configuration.setOptions();
  configuration.getDocletSpecificMsg().notice("doclet.build_version",
      configuration.getDocletSpecificBuildDate());
  ClassTree classtree = new ClassTree(configuration,
      configuration.nodeprecated);

  generateClassFiles(root, classtree);
  if (configuration.sourcepath != null
      && configuration.sourcepath.length() > 0) {
    StringTokenizer pathTokens = new StringTokenizer(configuration.sourcepath,
        String.valueOf(File.pathSeparatorChar));
    boolean first = true;
    while (pathTokens.hasMoreTokens()) {
      Util.copyDocFiles(configuration,
          pathTokens.nextToken() + File.separator,
          DocletConstants.DOC_FILES_DIR_NAME, first);
      first = false;
    }
  }

  PackageListWriter.generate(configuration);
  generatePackageFiles(classtree);

  generateOtherFiles(root, classtree);
  configuration.tagletManager.printReport();
  return true;
}
 
开发者ID:codeaudit,项目名称:gwt-chronoscope,代码行数:37,代码来源:ChronoscopeDoclet.java

示例4: main

import com.sun.tools.doclets.formats.html.ConfigurationImpl; //导入依赖的package包/类
/**
 * The entry point of the test.
 * @param args the array of command line arguments.
 */
public static void main(String[] args) {
    MetaTag tester = new MetaTag();
    Configuration config = ConfigurationImpl.getInstance();
    boolean defaultKeywordsSetting = config.keywords;
    boolean defaultTimestampSetting = config.notimestamp;
    run(tester, ARGS, TEST, NEGATED_TEST);
    //Variable needs to be reset because Configuration is a singleton.
    config.keywords = defaultKeywordsSetting;
    config.notimestamp = defaultTimestampSetting;
    run(tester, ARGS_NO_TIMESTAMP_NO_KEYWORDS, TEST2, NEGATED_TEST2);
    tester.printSummary();
}
 
开发者ID:unktomi,项目名称:form-follows-function,代码行数:17,代码来源:MetaTag.java

示例5: optionLength

import com.sun.tools.doclets.formats.html.ConfigurationImpl; //导入依赖的package包/类
public static int optionLength(String option)
{
    if (option.equalsIgnoreCase("-navOnly"))
    {
        return 1;
    }
    if (option.equalsIgnoreCase("-template"))
    {
        return 2;
    }
    // Construct temporary configuration for check
    return ConfigurationImpl.getInstance().optionLength(option);
}
 
开发者ID:tcolar,项目名称:javaontracks,代码行数:14,代码来源:JOTDoclet.java

示例6: configuration

import com.sun.tools.doclets.formats.html.ConfigurationImpl; //导入依赖的package包/类
public Configuration configuration()
{
    return ConfigurationImpl.getInstance();
}
 
开发者ID:tcolar,项目名称:javaontracks,代码行数:5,代码来源:JOTDoclet.java

示例7: validOptions

import com.sun.tools.doclets.formats.html.ConfigurationImpl; //导入依赖的package包/类
public static boolean validOptions(String options[][],
        DocErrorReporter reporter)
{
    (ConfigurationImpl.getInstance()).validOptions(options, reporter);
    return true;
}
 
开发者ID:tcolar,项目名称:javaontracks,代码行数:7,代码来源:JOTDoclet.java

示例8: JOTDocletIndexWriter

import com.sun.tools.doclets.formats.html.ConfigurationImpl; //导入依赖的package包/类
/**
 * create the writer
 * @param configuration
 * @param path
 * @param filename
 * @param split
 */
public JOTDocletIndexWriter(ConfigurationImpl configuration, HtmlDocletWriter writer)
{
    this.docWriter = writer;
    this.configuration = configuration;
    builder = new IndexBuilder(configuration, false);
}
 
开发者ID:tcolar,项目名称:javaontracks,代码行数:14,代码来源:JOTDocletIndexWriter.java


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