Class CalltreeResource

java.lang.Object
aQute.bnd.osgi.WriteResource
aQute.bnd.make.calltree.CalltreeResource
All Implemented Interfaces:
Resource, Closeable, AutoCloseable

public class CalltreeResource extends WriteResource
Create an XML call tree of a set of classes. The structure of the XML is:
  calltree ::= <using> <usedby> using ::= <method> *
 usedby ::= <method> * method ::= <ref>
 
The using element contains methods in the set of classes and their references. The usedby element contains the used methods and their references to the set of classes. The ref element contains the class, the method name, the descriptor, and a pretty print version of the method. The XML does not contain an XML processor instruction to make it easier to include in other XML. The encoding is always UTF-8. This class can be used as a resource, just add it to a JAR and the data is generated when the resource is written (saving time when the JAR is up to date and does not have to be generated). However, the actual write method is a static method and can be called as well: writeCalltree(PrintWriter, Collection).