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


Java Standard.start方法代码示例

本文整理汇总了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;
}
 
开发者ID:talsma-ict,项目名称:umldoclet,代码行数:15,代码来源:UMLDoclet.java

示例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;
}
 
开发者ID:grahamedgecombe,项目名称:apiviz,代码行数:31,代码来源:APIviz.java

示例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);
}
 
开发者ID:asciidoctor,项目名称:asciidoclet,代码行数:12,代码来源:StandardAdapterTest.java

示例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();
}
 
开发者ID:Abnaxos,项目名称:markdown-doclet,代码行数:39,代码来源:MarkdownDoclet.java

示例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));
}
 
开发者ID:naver,项目名称:hadoop,代码行数:7,代码来源:IncludePublicAnnotationsStandardDoclet.java

示例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));
 }
 
开发者ID:naver,项目名称:hadoop,代码行数:6,代码来源:ExcludePrivateAnnotationsStandardDoclet.java

示例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));
}
 
开发者ID:fengchen8086,项目名称:ditb,代码行数:6,代码来源:ExcludePrivateAnnotationsStandardDoclet.java

示例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);
}
 
开发者ID:johncarl81,项目名称:exportdoclet,代码行数:4,代码来源:StandardAdapter.java

示例10: start

import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
public static boolean start(RootDoc rootDoc) {
    return Standard.start((RootDoc) filterHidden(rootDoc, RootDoc.class));
}
 
开发者ID:google,项目名称:conscrypt,代码行数:4,代码来源:FilterDoclet.java

示例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));
}
 
开发者ID:SUPENTA,项目名称:flitchio-sdk,代码行数:4,代码来源:JavadocFilter.java

示例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);
}
 
开发者ID:wso2,项目名称:wso2-axis2-transports,代码行数:52,代码来源:TestkitJavadocDoclet.java

示例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));
}
 
开发者ID:sojamo,项目名称:controlp5,代码行数:6,代码来源:ExcludeDoclet.java

示例14: start

import com.sun.tools.doclets.standard.Standard; //导入方法依赖的package包/类
public static boolean start (RootDoc root) throws IOException, ReflectiveOperationException {
	return Standard.start(removeNotPublicApi(root));
}
 
开发者ID:kotcrab,项目名称:vis-editor,代码行数:4,代码来源:PublicApiDoclet.java


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