Package jdiff
Class JDiff
- java.lang.Object
-
- com.sun.javadoc.Doclet
-
- jdiff.JDiff
-
public class JDiff extends com.sun.javadoc.DocletGenerates HTML describing the changes between two sets of Java source code. See the file LICENSE.txt for copyright details.
-
-
Constructor Summary
Constructors Constructor Description JDiff()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static com.sun.javadoc.LanguageVersionlanguageVersion()static voidmain(java.lang.String[] args)This method is only called when running JDiff as a standalone application, and uses ANT to execute the build configuration in the XML configuration file passed in.static intoptionLength(java.lang.String option)This method is called by Javadoc to parse the options it does not recognize.static intrunAnt(java.lang.String[] args)Invoke ANT by reflection.static voidshowUsage()Display usage information for JDiff.static booleanstart(com.sun.javadoc.RootDoc root)Doclet-mandated start method.protected booleanstartGeneration(com.sun.javadoc.RootDoc newRoot)Generate the summary of the APIs.static booleanvalidOptions(java.lang.String[][] options, com.sun.javadoc.DocErrorReporter reporter)After parsing the available options usingoptionLength(java.lang.String), Javadoc invokes this method with an array of options-arrays.
-
-
-
Method Detail
-
languageVersion
public static com.sun.javadoc.LanguageVersion languageVersion()
-
start
public static boolean start(com.sun.javadoc.RootDoc root)
Doclet-mandated start method. Everything begins here.- Parameters:
root- a RootDoc object passed by Javadoc- Returns:
- true if document generation succeeds
-
startGeneration
protected boolean startGeneration(com.sun.javadoc.RootDoc newRoot)
Generate the summary of the APIs.- Parameters:
root- the RootDoc object passed by Javadoc- Returns:
- true if no problems encountered within JDiff
-
optionLength
public static int optionLength(java.lang.String option)
This method is called by Javadoc to parse the options it does not recognize. It then callsvalidOptions(java.lang.String[][], com.sun.javadoc.DocErrorReporter)to validate them.- Parameters:
option- a String containing an option- Returns:
- an int telling how many components that option has
-
validOptions
public static boolean validOptions(java.lang.String[][] options, com.sun.javadoc.DocErrorReporter reporter)After parsing the available options usingoptionLength(java.lang.String), Javadoc invokes this method with an array of options-arrays.- Parameters:
options- an array of String arrays, one per optionreporter- a DocErrorReporter for generating error messages- Returns:
- true if no errors were found, and all options are valid
-
main
public static void main(java.lang.String[] args)
This method is only called when running JDiff as a standalone application, and uses ANT to execute the build configuration in the XML configuration file passed in.
-
showUsage
public static void showUsage()
Display usage information for JDiff.
-
runAnt
public static int runAnt(java.lang.String[] args)
Invoke ANT by reflection.- Returns:
- The integer return code from running ANT.
-
-