Package soot.xml
Class XMLPrinter
- java.lang.Object
-
- soot.xml.XMLPrinter
-
public class XMLPrinter extends Object
XML printing routines all XML output comes through here
-
-
Constructor Summary
Constructors Constructor Description XMLPrinter(Singletons.Global g)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description XMLNodeaddElement(String name)XMLNodeaddElement(String name, String value)XMLNodeaddElement(String name, String value, String[] attributes)XMLNodeaddElement(String name, String value, String[] attributes, String[] values)XMLNodeaddElement(String name, String value, String attribute, String attributeValue)voidprintJimpleStyleTo(SootClass cl, PrintWriter out)Prints out an XML representation of the given SootClass with each method Body printed in the textual format corresponding to the IR used to encode the Body.StringtoString()static XMLPrinterv()
-
-
-
Field Detail
-
xmlHeader
public static final String xmlHeader
- See Also:
- Constant Field Values
-
dtdHeader
public static final String dtdHeader
- See Also:
- Constant Field Values
-
root
public XMLRoot root
-
-
Constructor Detail
-
XMLPrinter
public XMLPrinter(Singletons.Global g)
-
-
Method Detail
-
v
public static XMLPrinter v()
-
addElement
public XMLNode addElement(String name, String value, String attribute, String attributeValue)
-
addElement
public XMLNode addElement(String name, String value, String[] attributes, String[] values)
-
printJimpleStyleTo
public void printJimpleStyleTo(SootClass cl, PrintWriter out)
Prints out an XML representation of the given SootClass with each method Body printed in the textual format corresponding to the IR used to encode the Body.- Parameters:
cl-out- a PrintWriter instance to print to.
-
-