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


Java ConfigurationImpl.getInstance方法代码示例

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


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

示例1: 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

示例2: 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

示例3: configuration

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


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