org.apache.tools.ant.taskdefs.optional.sitraka
public class XMLReport extends Object
Constructor Summary | |
---|---|
XMLReport(File file) create a new XML report, logging will be on stdout | |
XMLReport(Task task, File file) create a new XML report, logging done on the task |
Method Summary | |
---|---|
protected Element | createClassElement(ClassFile classFile) create an empty class element with its default cov.data (0) |
Document | createDocument(String[] classPath) create the whole new document |
protected Element | createMethodElement(MethodInfo method) create an empty method element with its cov.data values |
protected void | createNodeMaps() create node maps so that we can access node faster by their name |
protected Element | createPackageElement(String pkgname) create an empty package element with its default cov.data (0) |
protected Element[] | getClasses(Element pkg) |
protected Element | getCovDataChild(Element parent) |
protected Vector | getFilteredMethods(ClassFile classFile) |
protected Hashtable | getMethods(Element clazz) |
protected String | getMethodSignature(MethodInfo method)
JProbe does not put the java.lang prefix for classes
in this package, so used this nice method so that
I have the same signature for methods |
protected String | getMethodSignature(ClassFile clazz, MethodInfo method)
Convert to a CovReport-like signature - <classname>.<method>(). |
protected Element[] | getPackages(Element snapshot) |
void | log(String message) |
protected void | removeAbstractMethods(ClassFile classFile, Element classNode)
Do additional work on an element to remove abstract methods that
are reported by JProbe 3.0 |
protected void | serializeClass(ClassFile classFile) serialize a classfile into XML |
void | setJProbehome(File home) set the JProbe home path. |
void | setReportFilters(ReportFilters filters) set the |
protected void | update() update the count of the XML, that is accumulate the stats on
methods, classes and package so that the numbers are valid
according to the info that was appended to the XML. |