|
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.AddParameters
Adds extra formal arguments to selected method signatures and calls.
Field Summary | |
(package private) ClassFileCollection |
cfc
|
(package private) java.util.HashSet |
changeSet
Compute the set of methods that will need to change. |
(package private) MethodID[] |
methods
|
(package private) java.util.HashSet |
methodSet
|
(package private) java.util.Properties |
props
|
(package private) java.lang.String[][] |
storageCreators
|
(package private) java.lang.String |
watermarkClassName
|
Constructor Summary | |
AddParameters(ClassFileCollection cfc,
java.util.Properties props,
java.lang.String[][] storageCreators,
MethodID[] methods)
|
Method Summary | |
(package private) void |
add()
This is the main entry point to this class. |
(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)
Add formal 'name' of type 'type' to method eg in class ec. |
(package private) boolean |
addStorageFormals(EditedClass ec,
de.fub.bytecode.generic.MethodGen mg)
|
(package private) boolean |
callShouldChange(EditedClass ec,
de.fub.bytecode.generic.InvokeInstruction call)
Return true if the call instruction in the class ec will need to be modified. |
(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)
Return true if the signature of the method mg in the class ec will need to be modified. |
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[][] storageCreators
MethodID[] methods
java.util.HashSet methodSet
java.lang.String watermarkClassName
java.util.HashSet changeSet
Constructor Detail |
public AddParameters(ClassFileCollection cfc, java.util.Properties props, java.lang.String[][] storageCreators, MethodID[] methods)
Method Detail |
void computeMethodsToChange()
boolean callShouldChange(EditedClass ec, de.fub.bytecode.generic.InvokeInstruction call)
ec
- a class that is being editedcall
- a call instructionboolean signatureShouldChange(EditedClass ec, de.fub.bytecode.generic.MethodGen mg)
ec
- a class that is being editedmg
- a methodvoid add() throws java.io.IOException
java.io.IOException
boolean addStorageFormals(EditedClass ec, de.fub.bytecode.generic.MethodGen mg) throws java.io.IOException
java.io.IOException
boolean addStorageFormal(EditedClass ec, de.fub.bytecode.generic.MethodGen mg, java.lang.String name, java.lang.String type)
ec
- a class that is being editedmg
- a method being modifiedname
- name of the formal to addtype
- type of the formal to addboolean addStorageActuals(EditedClass ec, de.fub.bytecode.generic.MethodGen mg)
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)
de.fub.bytecode.generic.InvokeInstruction fixMethodSignature(EditedClass ec, de.fub.bytecode.generic.InvokeInstruction call, java.lang.String type)
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 |