sandmark.obfuscate.loop
Class MethodObject
java.lang.Object
|
+--sandmark.obfuscate.loop.ApplicationObject
|
+--sandmark.obfuscate.loop.MethodObject
- All Implemented Interfaces:
- java.lang.Comparable
- public class MethodObject
- extends ApplicationObject
Constructor Summary |
MethodObject(java.lang.String className,
java.lang.String methName,
java.lang.String methSig)
|
Method Summary |
protected java.util.ArrayList |
computeStats(Stats stats)
|
java.lang.String |
getKey()
|
boolean |
isTargetOf(Algorithm alg)
Returns true if the algorithm can be applied to this type
of application object. |
void |
removeMethod(java.lang.String newClass,
java.lang.String newMName,
java.lang.String newSig)
|
void |
renameMethod(java.lang.String oldClass,
java.lang.String oldMName,
java.lang.String oldSig,
java.lang.String newClass,
java.lang.String newMName,
java.lang.String newSig)
|
void |
replaceMethod(sandmark.obfuscate.loop.MethodObject.MethodName oldName,
java.util.ArrayList newNames)
|
protected boolean |
runIt(Algorithm candidate,
ClassFileCollection cfc)
|
java.lang.String |
toString()
|
Methods inherited from class sandmark.obfuscate.loop.ApplicationObject |
addAlgorithm, addSubObject, compareTo, getCandidates, getObfLevelRemaining, getRequiredProperties, getRunProperties, getSuggestedProperties, isDone, isSubobjectOf, runAlgorithm, runAlgorithm, setObfLevelRemaining |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MethodObject
public MethodObject(java.lang.String className,
java.lang.String methName,
java.lang.String methSig)
runIt
protected boolean runIt(Algorithm candidate,
ClassFileCollection cfc)
- Overrides:
runIt
in class ApplicationObject
computeStats
protected java.util.ArrayList computeStats(Stats stats)
- Overrides:
computeStats
in class ApplicationObject
toString
public java.lang.String toString()
- Overrides:
toString
in class ApplicationObject
getKey
public java.lang.String getKey()
- Overrides:
getKey
in class ApplicationObject
isTargetOf
public boolean isTargetOf(Algorithm alg)
- Description copied from class:
ApplicationObject
- Returns true if the algorithm can be applied to this type
of application object.
- Overrides:
isTargetOf
in class ApplicationObject
renameMethod
public void renameMethod(java.lang.String oldClass,
java.lang.String oldMName,
java.lang.String oldSig,
java.lang.String newClass,
java.lang.String newMName,
java.lang.String newSig)
replaceMethod
public void replaceMethod(sandmark.obfuscate.loop.MethodObject.MethodName oldName,
java.util.ArrayList newNames)
removeMethod
public void removeMethod(java.lang.String newClass,
java.lang.String newMName,
java.lang.String newSig)