Java Code Examples for com.sun.tools.doclets.standard.Standard#start()
The following examples show how to use
com.sun.tools.doclets.standard.Standard#start() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ExcludeDoclet.java From JPPF with Apache License 2.0 | 5 votes |
/** * Entry point for this doclet. * This method modifies the standard doclet processing by wrapping each element in a proxy. * @param root the root of the document from which the javadoc is generated. * @return true if javadoc generation was succesful, false otherwise. * @throws java.io.IOException if an I/O exception occurs while generating the javadoc. */ public static boolean start(final RootDoc root) throws java.io.IOException { try { System.out.println("root doc = " + root.name()); return Standard.start((RootDoc) process(root, RootDoc.class)); } catch (IllegalArgumentException e) { System.out.println("IllegalArgumentException for root doc = " + root); throw e; } }
Example 2
Source File: MarkdownDoclet.java From markdown-doclet with GNU General Public License v3.0 | 5 votes |
/** * 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(); }
Example 3
Source File: IncludePublicAnnotationsStandardDoclet.java From hadoop with Apache License 2.0 | 4 votes |
public static boolean start(RootDoc root) { System.out.println( IncludePublicAnnotationsStandardDoclet.class.getSimpleName()); RootDocProcessor.treatUnannotatedClassesAsPrivate = true; return Standard.start(RootDocProcessor.process(root)); }
Example 4
Source File: ExcludePrivateAnnotationsStandardDoclet.java From hadoop with Apache License 2.0 | 4 votes |
public static boolean start(RootDoc root) { System.out.println( ExcludePrivateAnnotationsStandardDoclet.class.getSimpleName()); return Standard.start(RootDocProcessor.process(root)); }
Example 5
Source File: IncludePublicAnnotationsStandardDoclet.java From big-c with Apache License 2.0 | 4 votes |
public static boolean start(RootDoc root) { System.out.println( IncludePublicAnnotationsStandardDoclet.class.getSimpleName()); RootDocProcessor.treatUnannotatedClassesAsPrivate = true; return Standard.start(RootDocProcessor.process(root)); }
Example 6
Source File: ExcludePrivateAnnotationsStandardDoclet.java From big-c with Apache License 2.0 | 4 votes |
public static boolean start(RootDoc root) { System.out.println( ExcludePrivateAnnotationsStandardDoclet.class.getSimpleName()); return Standard.start(RootDocProcessor.process(root)); }
Example 7
Source File: ExcludeDoclet.java From Tehreer-Android with Apache License 2.0 | 4 votes |
public static boolean start(RootDoc root) { return Standard.start((RootDoc) process(root, RootDoc.class)); }
Example 8
Source File: JavadocFilter.java From pom-manipulation-ext with Apache License 2.0 | 4 votes |
public static boolean start(RootDoc root) { return Standard.start( RootDocProcessor.process( root ) ); }
Example 9
Source File: ExcludeDoclet.java From ibm-cos-sdk-java with Apache License 2.0 | 2 votes |
public static boolean start(RootDoc rootIBMDoc) { return Standard.start((RootDoc) process(rootIBMDoc, RootDoc.class)); }