jdiff
public class XMLToAPI extends Object
Field Summary | |
---|---|
static boolean | validateXML
If set, validate the XML which represents an API. |
Method Summary | |
---|---|
static void | addClass(String name, String parent, boolean isAbstract, Modifiers modifiers)
Create a new class and add it to the current package. |
static void | addCtor(String type, Modifiers modifiers)
Add a constructor to the current class. |
static void | addException(String name, String type, String currElement)
Add an exception to the current method or constructor.
|
static void | addField(String name, String type, boolean isTransient, boolean isVolatile, String value, Modifiers modifiers)
Add a field to the current class. |
static void | addImplements(String name)
Add an inherited interface to the current class. |
static void | addInheritedElements()
Add the inherited methods and fields to each class in turn. |
static void | addInheritedElements(ClassAPI child, ClassAPI parent, String fqParentName)
Add all the inherited methods and fields in the second class to
the first class, marking them as inherited from the second class.
|
static void | addInterface(String name, String parent, boolean isAbstract, Modifiers modifiers)
Add an new interface and add it to the current package. |
static void | addMethod(String name, String returnType, boolean isAbstract, boolean isNative, boolean isSynchronized, Modifiers modifiers)
Add a method to the current class. |
static void | addPackage(String name)
Create a new package and add it to the API. |
static void | addParam(String name, String type)
Add a parameter to the current method. |
static void | nameAPI(String name)
Set the name of the API object.
|
static API | readFile(String filename, boolean createGlobalComments, String apiName)
Read the file where the XML representing the API is stored.
|
Parameters: name The name of the class. parent The name of the parent class, null if no class is extended. modifiers Modifiers for this class.
Parameters: name The name of the constructor. type The type of the constructor. modifiers Modifiers for this constructor.
Parameters: name The name of the parameter. type The type of the parameter. May be null in JDiff1.0.8 and earlier versions. currElement Name of the current element.
Parameters: name The name of the field. type The type of the field, null if it is void. modifiers Modifiers for this field.
Parameters: name The name of the inherited interface.
Parameters: name The name of the interface. parent The name of the parent interface, null if no interface is extended.
Parameters: name The name of the method. returnType The return type of the method, null if it is void. modifiers Modifiers for this method.
Parameters: name The name of the package.
Parameters: name The name of the parameter. type The type of the parameter, null if it is void.
Parameters: name The name of the package.
Parameters: filename The full name of the file containing the XML representing the API crateGlobalComments If set, then store possible comments apiName The simple name of the API file. If -oldapidir and -newapidir are not used, then this is the same as the filename parameter