|
SandMark version 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sandmark.watermark.ct.embed.DeleteMarkCalls
Field Summary | |
(package private) ClassFileCollection |
cfc
|
(package private) java.util.Properties |
props
|
(package private) java.lang.String |
watermarkClass
|
Constructor Summary | |
DeleteMarkCalls(ClassFileCollection cfc,
java.util.Properties props)
|
Method Summary | |
(package private) void |
delete()
Delete all the calls to sandmark.watermark.ct.trace.Annotator.sm$mark(*) in every class in the program. |
(package private) boolean |
deleteMarkCall(EditedClass ec,
de.fub.bytecode.generic.MethodGen mg,
de.fub.bytecode.generic.INVOKESTATIC call,
de.fub.bytecode.generic.InstructionHandle ih)
Check if the given instruction is a call to sandmark.watermark.ct.trace.Annotator.sm$mark(*) If it is, replace it with a "NOP". |
(package private) boolean |
deleteMarkCalls(EditedClass ec)
Delete all the calls to sandmark.watermark.ct.trace.Annotator.sm$mark(*) in every method in the given class. |
(package private) boolean |
deleteMarkCalls(EditedClass ec,
de.fub.bytecode.generic.MethodGen mg)
Delete every call to sandmark.watermark.ct.trace.Annotator.sm$mark(*) in the given method. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
java.util.Properties props
ClassFileCollection cfc
java.lang.String watermarkClass
Constructor Detail |
public DeleteMarkCalls(ClassFileCollection cfc, java.util.Properties props)
Method Detail |
void delete() throws java.io.IOException
java.io.IOException
boolean deleteMarkCalls(EditedClass ec)
ec
- the class to be edited
Return 'true' if the class was changed.boolean deleteMarkCalls(EditedClass ec, de.fub.bytecode.generic.MethodGen mg)
ec
- the class to be editedmg
- the method to be editedboolean deleteMarkCall(EditedClass ec, de.fub.bytecode.generic.MethodGen mg, de.fub.bytecode.generic.INVOKESTATIC call, de.fub.bytecode.generic.InstructionHandle ih)
ec
- the class to be editedmg
- the method to be editedcall
- the call instruction to be deletedih
- the instruction handle of the call instruction
Return 'true' if the method was changed.public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
|
SandMark version 3.0 Wed Jan 29 10:30:05 MST 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |