|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.osjava.jardiff.DOMDiffHandler
A specific type of DiffHandler which uses DOM to create an XML document describing the changes in the diff.
| Field Summary | |
static String |
XML_URI
The XML namespace used. |
| Constructor Summary | |
DOMDiffHandler()
Create a new DOMDiffHandler which writes to System.out |
|
DOMDiffHandler(Transformer transformer,
Result result)
Create a new SAXDiffHandler with the specified TransformerHandler. |
|
| Method Summary | |
protected void |
addAccessFlags(AbstractInfo info)
Add attributes describing some access flags. |
protected void |
addMethodNodes(String desc)
Add the method nodes for the method descriptor. |
protected void |
addTypeNode(String desc)
Add a type node for the specified descriptor. |
protected void |
addTypeNode(org.objectweb.asm.Type type)
Add a type node for the specified type. |
void |
classAdded(ClassInfo info)
Write out the class info for an added class. |
void |
classChanged(ClassInfo oldInfo,
ClassInfo newInfo)
Write out info aboout a changed class. |
void |
classRemoved(ClassInfo info)
Write out class info for a removed class. |
void |
endAdded()
End the added section. |
void |
endChanged()
End the changed section. |
void |
endClassChanged()
End the changed section for an individual class. |
void |
endDiff()
End the diff. |
void |
endRemoved()
End the removed section. |
void |
fieldAdded(FieldInfo info)
Write out info about an added field. |
void |
fieldChanged(FieldInfo oldInfo,
FieldInfo newInfo)
Write out info aboout a changed field. |
void |
fieldRemoved(FieldInfo info)
Write out info about a removed field. |
void |
methodAdded(MethodInfo info)
Write out info about a added method. |
void |
methodChanged(MethodInfo oldInfo,
MethodInfo newInfo)
Write out info aboout a changed method. |
void |
methodRemoved(MethodInfo info)
Write out info about a removed method. |
void |
startAdded()
Start the added section. |
void |
startChanged()
Start the changed section. |
void |
startClassChanged(String internalName)
Start a changed section for an individual class. |
void |
startDiff(String oldJar,
String newJar)
Start the diff. |
void |
startRemoved()
Start the removed node. |
protected void |
writeClassInfo(ClassInfo info)
Write out information about a class. |
protected void |
writeFieldInfo(FieldInfo info)
Write out information about a field. |
protected void |
writeMethodInfo(MethodInfo info)
Write out information about a method. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String XML_URI
| Constructor Detail |
public DOMDiffHandler()
throws DiffException
DiffException - when there is an underlying exception, e.g.
writing to a file caused an IOException
public DOMDiffHandler(Transformer transformer,
Result result)
throws DiffException
| Method Detail |
public void startDiff(String oldJar,
String newJar)
throws DiffException
startDiff in interface DiffHandleroldJar - ignorednewJar - ignored
DiffException - when there is an underlying exception, e.g.
writing to a file caused an IOException
public void startRemoved()
throws DiffException
startRemoved in interface DiffHandlerDiffException - when there is an underlying exception, e.g.
writing to a file caused an IOException
public void classRemoved(ClassInfo info)
throws DiffException
classRemoved in interface DiffHandlerinfo - The info to write out.
DiffException - when there is an underlying exception, e.g.
writing to a file caused an IOException
public void endRemoved()
throws DiffException
endRemoved in interface DiffHandlerDiffException - when there is an underlying exception, e.g.
writing to a file caused an IOException
public void startAdded()
throws DiffException
startAdded in interface DiffHandlerDiffException - when there is an underlying exception, e.g.
writing to a file caused an IOException
public void classAdded(ClassInfo info)
throws DiffException
classAdded in interface DiffHandlerinfo - The class info describing the added class.
DiffException - when there is an underlying exception, e.g.
writing to a file caused an IOException
public void endAdded()
throws DiffException
endAdded in interface DiffHandlerDiffException - when there is an underlying exception, e.g.
writing to a file caused an IOException
public void startChanged()
throws DiffException
startChanged in interface DiffHandlerDiffException - when there is an underlying exception, e.g.
writing to a file caused an IOException
public void startClassChanged(String internalName)
throws DiffException
startClassChanged in interface DiffHandlerinternalName - the internal name of the class that has changed.
DiffException - when there is an underlying exception, e.g.
writing to a file caused an IOException
public void fieldRemoved(FieldInfo info)
throws DiffException
fieldRemoved in interface DiffHandlerinfo - Info about the field that's been removed.
DiffException - when there is an underlying exception, e.g.
writing to a file caused an IOException
public void methodRemoved(MethodInfo info)
throws DiffException
methodRemoved in interface DiffHandlerinfo - Info about the method that's been removed.
DiffException - when there is an underlying exception, e.g.
writing to a file caused an IOException
public void fieldAdded(FieldInfo info)
throws DiffException
fieldAdded in interface DiffHandlerinfo - Info about the added field.
DiffException - when there is an underlying exception, e.g.
writing to a file caused an IOException
public void methodAdded(MethodInfo info)
throws DiffException
methodAdded in interface DiffHandlerinfo - Info about the added method.
DiffException - when there is an underlying exception, e.g.
writing to a file caused an IOException
public void classChanged(ClassInfo oldInfo,
ClassInfo newInfo)
throws DiffException
classChanged in interface DiffHandleroldInfo - Info about the old class.newInfo - Info about the new class.
DiffException - when there is an underlying exception, e.g.
writing to a file caused an IOException
public void fieldChanged(FieldInfo oldInfo,
FieldInfo newInfo)
throws DiffException
fieldChanged in interface DiffHandleroldInfo - Info about the old field.newInfo - Info about the new field.
DiffException - when there is an underlying exception, e.g.
writing to a file caused an IOException
public void methodChanged(MethodInfo oldInfo,
MethodInfo newInfo)
throws DiffException
methodChanged in interface DiffHandleroldInfo - Info about the old method.newInfo - Info about the new method.
DiffException - when there is an underlying exception, e.g.
writing to a file caused an IOException
public void endClassChanged()
throws DiffException
endClassChanged in interface DiffHandlerDiffException - when there is an underlying exception, e.g.
writing to a file caused an IOException
public void endChanged()
throws DiffException
endChanged in interface DiffHandlerDiffException - when there is an underlying exception, e.g.
writing to a file caused an IOException
public void endDiff()
throws DiffException
endDiff in interface DiffHandlerDiffException - when there is an underlying exception, e.g.
writing to a file caused an IOExceptionprotected void writeClassInfo(ClassInfo info)
info - Info about the class to write out.protected void writeMethodInfo(MethodInfo info)
info - Info about the method.protected void writeFieldInfo(FieldInfo info)
info - Info about the field.protected void addAccessFlags(AbstractInfo info)
info - Info describing the access flags.#attrprotected void addMethodNodes(String desc)
desc - The descriptor for the method to write out.protected void addTypeNode(String desc)
desc - A type descriptor.protected void addTypeNode(org.objectweb.asm.Type type)
type - The type to describe.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||