本文整理汇总了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;
}
示例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();
}
示例3: configuration
import com.sun.tools.doclets.formats.html.ConfigurationImpl; //导入方法依赖的package包/类
public Configuration configuration()
{
return ConfigurationImpl.getInstance();
}