jdiff
Class JDiff

java.lang.Object
  extended byDoclet
      extended byjdiff.JDiff

public class JDiff
extends Doclet

Generates HTML describing the changes between two sets of Java source code. See the file LICENSE.txt for copyright details.

See Also:
Serialized Form

Constructor Summary
JDiff()
           
 
Method Summary
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.
static int optionLength(java.lang.String option)
          This method is called by Javadoc to parse the options it does not recognize.
static int runAnt(java.lang.String[] args)
          Invoke ANT by reflection.
static void showUsage()
          Display usage information for JDiff.
static boolean start(RootDoc root)
          Doclet-mandated start method.
protected  boolean startGeneration(RootDoc newRoot)
          Generate the summary of the APIs.
static boolean validOptions(java.lang.String[][] options, DocErrorReporter reporter)
          After parsing the available options using optionLength(java.lang.String), Javadoc invokes this method with an array of options-arrays.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDiff

public JDiff()
Method Detail

start

public static boolean start(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(RootDoc newRoot)
Generate the summary of the APIs.

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 calls validOptions(java.lang.String[][], 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,
                                   DocErrorReporter reporter)
After parsing the available options using optionLength(java.lang.String), Javadoc invokes this method with an array of options-arrays.

Parameters:
options - an array of String arrays, one per option
reporter - 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.