com.sun.tools.doclets.standard.Standard Java Examples
The following examples show how to use
com.sun.tools.doclets.standard.Standard.
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 | 5 votes |
public static int optionLength(String option) { Integer length = StabilityOptions.optionLength(option); if (length != null) { return length; } return Standard.optionLength(option); }
Example #4
Source File: ExcludePrivateAnnotationsStandardDoclet.java From hadoop with Apache License 2.0 | 5 votes |
public static int optionLength(String option) { Integer length = StabilityOptions.optionLength(option); if (length != null) { return length; } return Standard.optionLength(option); }
Example #5
Source File: IncludePublicAnnotationsStandardDoclet.java From big-c with Apache License 2.0 | 5 votes |
public static int optionLength(String option) { Integer length = StabilityOptions.optionLength(option); if (length != null) { return length; } return Standard.optionLength(option); }
Example #6
Source File: ExcludePrivateAnnotationsStandardDoclet.java From big-c with Apache License 2.0 | 5 votes |
public static int optionLength(String option) { Integer length = StabilityOptions.optionLength(option); if (length != null) { return length; } return Standard.optionLength(option); }
Example #7
Source File: IncludePublicAnnotationsStandardDoclet.java From big-c with Apache License 2.0 | 4 votes |
public static boolean validOptions(String[][] options, DocErrorReporter reporter) { StabilityOptions.validOptions(options, reporter); String[][] filteredOptions = StabilityOptions.filterOptions(options); return Standard.validOptions(filteredOptions, reporter); }
Example #8
Source File: ConfigStandardDoclet.java From tez with Apache License 2.0 | 4 votes |
public static int optionLength(String option) { return Standard.optionLength(option); }
Example #9
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 #10
Source File: JavadocFilter.java From pom-manipulation-ext with Apache License 2.0 | 4 votes |
@SuppressWarnings( "unused" ) public static int optionLength(String option) { return Standard.optionLength(option); }
Example #11
Source File: JavadocFilter.java From pom-manipulation-ext with Apache License 2.0 | 4 votes |
@SuppressWarnings( "unused" ) public static boolean validOptions( String[][] options, DocErrorReporter reporter) { return Standard.validOptions(options, reporter); }
Example #12
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 #13
Source File: ExcludePrivateAnnotationsStandardDoclet.java From big-c with Apache License 2.0 | 4 votes |
public static boolean validOptions(String[][] options, DocErrorReporter reporter) { StabilityOptions.validOptions(options, reporter); String[][] filteredOptions = StabilityOptions.filterOptions(options); return Standard.validOptions(filteredOptions, reporter); }
Example #14
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 #15
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 #16
Source File: ExcludePrivateAnnotationsStandardDoclet.java From hadoop with Apache License 2.0 | 4 votes |
public static boolean validOptions(String[][] options, DocErrorReporter reporter) { StabilityOptions.validOptions(options, reporter); String[][] filteredOptions = StabilityOptions.filterOptions(options); return Standard.validOptions(filteredOptions, reporter); }
Example #17
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 #18
Source File: IncludePublicAnnotationsStandardDoclet.java From hadoop with Apache License 2.0 | 4 votes |
public static boolean validOptions(String[][] options, DocErrorReporter reporter) { StabilityOptions.validOptions(options, reporter); String[][] filteredOptions = StabilityOptions.filterOptions(options); return Standard.validOptions(filteredOptions, reporter); }
Example #19
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 #20
Source File: Options.java From markdown-doclet with GNU General Public License v3.0 | 3 votes |
/** * As specified by the Doclet specification. * * @param options The command line options. * @param errorReporter An error reporter to print messages. * * @return `true` if the options are valid. * * @see com.sun.javadoc.Doclet#validOptions(String[][], com.sun.javadoc.DocErrorReporter) */ public static boolean validOptions(String[][] options, DocErrorReporter errorReporter) { options = new Options().load(options, errorReporter); if ( options != null ) { return Standard.validOptions(options, errorReporter); } else { return false; } }
Example #21
Source File: ExcludeDoclet.java From JPPF with Apache License 2.0 | 2 votes |
/** * Determine the number of arguments for each command line option (including the option name). * This method delegates its processing to the standard doclet. * @param option the option to check. * @return the expected number of arguments for the option. */ public static int optionLength(final String option) { return Standard.optionLength(option); }
Example #22
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)); }