本文整理汇总了Java中com.sun.tools.doclets.standard.Standard.start方法的典型用法代码示例。如果您正苦于以下问题:Java Standard.start方法的具体用法?Java Standard.start怎么用?Java Standard.start使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.sun.tools.doclets.standard.Standard
的用法示例。
在下文中一共展示了Standard.start方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: start
import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
public static boolean start(RootDoc rootDoc) {
UMLDoclet umlDoclet = new UMLDoclet(rootDoc);
boolean umlDocletResult = umlDoclet.generateUMLDiagrams();
// Regarding issue #13: I don't understand why the Standard doclet will run on a 'bad' javadoc
// contained in RootDoc somewhere after UMLDoclet has done it's thing, but
// send us a (correct) JavaDoc ERROR if ran on the same rootDoc 'untouched'...
// Think about this; Is there some way to 'clone' it and pass the original rootDoc to the
// Standard doclet??
// TODO re-test this issue with the added 'languageVersion()' method.
if (umlDocletResult && !umlDoclet.config.skipStandardDoclet()) {
return Standard.start(rootDoc);
}
return umlDocletResult;
}
示例2: start
import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
public static boolean start(RootDoc root) {
root = new APIvizRootDoc(root);
if (!Standard.start(root)) {
return false;
}
if (!Graphviz.isAvailable(root)) {
root.printWarning("Graphviz is not found.");
root.printWarning("Please install graphviz and specify -Dgraphviz.home Otherwise, you might have specified incorrect graphviz home Graphviz is not found in the system path.");
root.printWarning("Skipping diagram generation.");
return true;
}
try {
File outputDirectory = getOutputDirectory(root.options());
ClassDocGraph graph = new ClassDocGraph(root);
if (shouldGeneratePackageDiagram(root.options())) {
generateOverviewSummary(root, graph, outputDirectory);
}
generatePackageSummaries(root, graph, outputDirectory);
generateClassDiagrams(root, graph, outputDirectory);
} catch(Throwable t) {
root.printError(
"An error occurred during diagram generation: " +
t.toString());
t.printStackTrace();
return false;
}
return true;
}
示例3: testStart
import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
@Test
public void testStart() throws Exception {
RootDoc mockDoc = mock(RootDoc.class);
PowerMockito.when(Standard.class, "start", mockDoc).thenReturn(true);
assertTrue(adapter.start(mockDoc));
PowerMockito.verifyStatic();
Standard.start(mockDoc);
}
示例4: start
import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
/**
* As specified by the Doclet specification.
*
* @param rootDoc The root doc.
*
* @return `true`, if process was successful.
*
* @see com.sun.javadoc.Doclet#start(RootDoc)
*/
public static boolean start(RootDoc rootDoc) {
final MarkdownTaglets markdownTaglets = MarkdownTaglets.instance();
Options options = new Options();
String[][] forwardedOptions = options.load(rootDoc.options(), rootDoc);
if ( forwardedOptions == null ) {
return false;
}
MarkdownDoclet doclet = new MarkdownDoclet(options, rootDoc);
markdownTaglets.setDocErrorReporter(doclet);
doclet.process();
if ( doclet.isError() ) {
return false;
}
RootDocWrapper rootDocWrapper = new RootDocWrapper(rootDoc, forwardedOptions);
if ( options.isHighlightEnabled() ) {
// find the footer option
int i = 0;
for ( ; i < rootDocWrapper.options().length; i++ ) {
if ( rootDocWrapper.options()[i][0].equals("-footer") ) {
rootDocWrapper.options()[i][1] += HIGHLIGHT_JS_HTML;
break;
}
}
if ( i >= rootDocWrapper.options().length ) {
rootDocWrapper.appendOption("-footer", HIGHLIGHT_JS_HTML);
}
}
return Standard.start(rootDocWrapper) && doclet.postProcess();
}
示例5: start
import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
public static boolean start(RootDoc root) {
System.out.println(
IncludePublicAnnotationsStandardDoclet.class.getSimpleName());
RootDocProcessor.treatUnannotatedClassesAsPrivate = true;
return Standard.start(RootDocProcessor.process(root));
}
示例6: start
import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
public static boolean start(RootDoc root) {
System.out.println(
ExcludePrivateAnnotationsStandardDoclet.class.getSimpleName());
return Standard.start(RootDocProcessor.process(root));
}
示例7: start
import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
public static boolean start(RootDoc root) {
System.out.println(
ExcludePrivateAnnotationsStandardDoclet.class.getSimpleName());
return Standard.start(RootDocProcessor.process(root));
}
示例8: start
import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
public static boolean start(RootDoc root) {
System.out.println(
ExcludePrivateAnnotationsStandardDoclet.class.getSimpleName());
return Standard.start(RootDocProcessor.process(root));
}
开发者ID:aliyun-beta,项目名称:aliyun-oss-hadoop-fs,代码行数:6,代码来源:ExcludePrivateAnnotationsStandardDoclet.java
示例9: start
import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
public boolean start(RootDoc rootDoc) {
return Standard.start(rootDoc);
}
示例10: start
import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
public static boolean start(RootDoc rootDoc) {
return Standard.start((RootDoc) filterHidden(rootDoc, RootDoc.class));
}
示例11: start
import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
public static boolean start(RootDoc root) throws java.io.IOException {
return Standard.start((RootDoc) process(root, RootDoc.class));
}
示例12: start
import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
public static boolean start(RootDoc root) throws Exception {
parseOptions(root.options());
ObjectInputStream in = new ObjectInputStream(new FileInputStream(resourceInfoFile));
ResourceInfo resourceInfo = (ResourceInfo)in.readObject();
in.close();
for (ClassDoc clazz : root.classes()) {
String qualifiedName = clazz.qualifiedName();
List<Resource> usedBy = resourceInfo.getUsedBy(qualifiedName);
Resource resource = resourceInfo.getResource(qualifiedName);
List<Dependency> dependencies = resource == null ? null : resource.getDependencies();
if (dependencies != null || usedBy != null) {
StringBuilder buffer = new StringBuilder(clazz.getRawCommentText());
buffer.append("<h2>Resource information</h2>");
if (usedBy != null) {
buffer.append("This resource is used by: ");
boolean first = true;
for (Resource r : usedBy) {
if (first) {
first = false;
} else {
buffer.append(", ");
}
buffer.append("{@link ");
buffer.append(r.getType());
buffer.append("}");
}
}
if (dependencies != null) {
buffer.append("<h3>Dependencies</h3>");
buffer.append("<dl>");
for (Dependency dependency : dependencies) {
buffer.append("<dt>{@link ");
buffer.append(dependency.getType());
buffer.append("} (");
buffer.append(dependency.getMultiplicity());
buffer.append(")</dt><dd>");
String comment = dependency.getComment();
if (comment == null) {
buffer.append("(no documentation available)");
} else {
buffer.append(comment);
}
buffer.append("</dd>");
}
buffer.append("</dl>");
}
clazz.setRawCommentText(buffer.toString());
}
}
return Standard.start(root);
}
示例13: start
import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
public static boolean start(RootDoc root)
throws java.io.IOException
{
return Standard.start((RootDoc)process(root, RootDoc.class));
}
示例14: start
import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
public static boolean start (RootDoc root) throws IOException, ReflectiveOperationException {
return Standard.start(removeNotPublicApi(root));
}