|
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.objectwm.MethodCopyUtil
This class implements the method overloading features for embedding the watermark vector instruction groups
Field Summary | |
(package private) Config |
config
|
int |
copyMethodOption0
|
int |
copyMethodOption1
|
int |
copyMethodOption2
|
(package private) ObjectHelper |
helper
|
int |
methodInvocationCount
|
(package private) ObjectUtil |
util
|
Constructor Summary | |
MethodCopyUtil(ObjectUtil objUtil)
|
Method Summary | |
de.fub.bytecode.generic.MethodGen |
createCloneMethod(java.lang.String className,
de.fub.bytecode.generic.MethodGen mg)
Creates an intial copy of an existing method which is to be overloaded and returns the MethodGen object of the created method |
int |
createMethodInvocation(de.fub.bytecode.generic.MethodGen mg,
de.fub.bytecode.generic.Type[] consArgTypes,
de.fub.bytecode.generic.MethodGen consmg)
|
de.fub.bytecode.generic.MethodGen |
deleteMethodParameter1(de.fub.bytecode.generic.MethodGen mg)
Second approach of overloading method, deleting a parameter and then removing all the instructions that access the deleted parameter |
de.fub.bytecode.generic.MethodGen |
deleteMethodParameter2(de.fub.bytecode.generic.MethodGen mg)
Third approach of overloading method, deleting a parameter and then creating a new variable to replicate the deleted parameter |
void |
deleteTargeterRange(de.fub.bytecode.generic.MethodGen mg,
de.fub.bytecode.generic.InstructionList instrList,
int index)
Deletes the instructions within 2 consecutive targeters in which the instruction referenced by 'index' lies |
de.fub.bytecode.generic.MethodGen |
insertMethodParameter(de.fub.bytecode.generic.MethodGen mg)
First approach of overloading method, inserting a new parameter |
void |
reInitializeParameters(de.fub.bytecode.generic.MethodGen mg)
Re-initializes the parameters of the newly created method |
boolean |
remVecfreqUpdatesInThreshold(int numVectors,
int currVecIndex,
VectorUpdateCtrl vecObj,
de.fub.bytecode.generic.MethodGen mg)
This method checks that the sideEffects of overloading a method is within a particular threshold limit |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
ObjectUtil util
ObjectHelper helper
Config config
public int copyMethodOption0
public int copyMethodOption1
public int copyMethodOption2
public int methodInvocationCount
Constructor Detail |
public MethodCopyUtil(ObjectUtil objUtil)
Method Detail |
public boolean remVecfreqUpdatesInThreshold(int numVectors, int currVecIndex, VectorUpdateCtrl vecObj, de.fub.bytecode.generic.MethodGen mg)
public de.fub.bytecode.generic.MethodGen deleteMethodParameter2(de.fub.bytecode.generic.MethodGen mg)
public de.fub.bytecode.generic.MethodGen deleteMethodParameter1(de.fub.bytecode.generic.MethodGen mg)
public de.fub.bytecode.generic.MethodGen createCloneMethod(java.lang.String className, de.fub.bytecode.generic.MethodGen mg)
public void reInitializeParameters(de.fub.bytecode.generic.MethodGen mg)
public de.fub.bytecode.generic.MethodGen insertMethodParameter(de.fub.bytecode.generic.MethodGen mg)
public void deleteTargeterRange(de.fub.bytecode.generic.MethodGen mg, de.fub.bytecode.generic.InstructionList instrList, int index)
public int createMethodInvocation(de.fub.bytecode.generic.MethodGen mg, de.fub.bytecode.generic.Type[] consArgTypes, de.fub.bytecode.generic.MethodGen consmg)
|
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 |