sandmark.watermark.ct.embed
Class AddParameters
java.lang.Object
|
+--sandmark.watermark.ct.embed.AddParameters
- public class AddParameters
- extends java.lang.Object
Adds extra formal arguments to selected method signatures
and calls.
Method Summary |
(package private) void |
add()
|
(package private) boolean |
addStorageActuals(EditedClass ec,
de.fub.bytecode.generic.MethodGen mg)
|
(package private) boolean |
addStorageFormal(EditedClass ec,
de.fub.bytecode.generic.MethodGen mg,
java.lang.String name,
java.lang.String type)
|
(package private) boolean |
addStorageFormals(EditedClass ec,
de.fub.bytecode.generic.MethodGen mg)
|
(package private) boolean |
callShouldChange(EditedClass ec,
de.fub.bytecode.generic.InvokeInstruction call)
|
(package private) void |
computeMethodsToChange()
|
(package private) boolean |
editCall(EditedClass ec,
de.fub.bytecode.generic.MethodGen mg,
de.fub.bytecode.generic.InstructionList il,
de.fub.bytecode.generic.InstructionHandle ih,
de.fub.bytecode.generic.InvokeInstruction call)
|
(package private) de.fub.bytecode.generic.InvokeInstruction |
fixMethodSignature(EditedClass ec,
de.fub.bytecode.generic.InvokeInstruction call,
java.lang.String type)
|
static void |
main(java.lang.String[] args)
|
(package private) boolean |
signatureShouldChange(EditedClass ec,
de.fub.bytecode.generic.MethodGen mg)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
props
java.util.Properties props
cfc
ClassFileCollection cfc
storageCreators
java.lang.String[][] storageCreators
methods
MethodID[] methods
methodSet
java.util.HashSet methodSet
watermarkClassName
java.lang.String watermarkClassName
changeSet
java.util.HashSet changeSet
AddParameters
public AddParameters(ClassFileCollection cfc,
java.util.Properties props,
java.lang.String[][] storageCreators,
MethodID[] methods)
computeMethodsToChange
void computeMethodsToChange()
callShouldChange
boolean callShouldChange(EditedClass ec,
de.fub.bytecode.generic.InvokeInstruction call)
signatureShouldChange
boolean signatureShouldChange(EditedClass ec,
de.fub.bytecode.generic.MethodGen mg)
add
void add()
throws java.io.IOException
java.io.IOException
addStorageFormals
boolean addStorageFormals(EditedClass ec,
de.fub.bytecode.generic.MethodGen mg)
throws java.io.IOException
java.io.IOException
addStorageFormal
boolean addStorageFormal(EditedClass ec,
de.fub.bytecode.generic.MethodGen mg,
java.lang.String name,
java.lang.String type)
addStorageActuals
boolean addStorageActuals(EditedClass ec,
de.fub.bytecode.generic.MethodGen mg)
editCall
boolean editCall(EditedClass ec,
de.fub.bytecode.generic.MethodGen mg,
de.fub.bytecode.generic.InstructionList il,
de.fub.bytecode.generic.InstructionHandle ih,
de.fub.bytecode.generic.InvokeInstruction call)
fixMethodSignature
de.fub.bytecode.generic.InvokeInstruction fixMethodSignature(EditedClass ec,
de.fub.bytecode.generic.InvokeInstruction call,
java.lang.String type)
main
public static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOException