aboutsummaryrefslogtreecommitdiff
path: root/src/jdiff/APIDiff.java
blob: 4b4fd2691de66c1945c9cc967469f5bf0877e382 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package jdiff;

import java.util.*;
import com.sun.javadoc.*;

/**
 * The class contains the changes between two API objects; packages added,
 * removed and changed. The packages are represented by PackageDiff objects,
 * which contain the changes in each package, and so on.
 *
 * See the file LICENSE.txt for copyright details.
 * @author Matthew Doar, mdoar@pobox.com
 */
public class APIDiff {

    /** Packages added in the new API. */
    public List packagesAdded = null; // PackageAPI[]
    /** Packages removed in the new API. */
    public List packagesRemoved = null; // PackageAPI[]
    /** Packages changed in the new API. */
    public List packagesChanged = null; // PackageDiff[]

    /** Name of the old API. */
    public static String oldAPIName_;
    /** Name of the old API. */
    public static String newAPIName_;

    /* The overall percentage difference between the two APIs. */
    public double pdiff = 0.0;

    /** Default constructor. */
    public APIDiff() {
        oldAPIName_ = null;
        newAPIName_ = null;
        packagesAdded = new ArrayList(); // PackageAPI[]
        packagesRemoved = new ArrayList(); // PackageAPI[]
        packagesChanged = new ArrayList(); // PackageDiff[]
    }   
}