SandMark version 2.0


sandmark.obfuscate
Class MethodObfuscator

java.lang.Object
  |
  +--sandmark.Algorithm
        |
        +--sandmark.obfuscate.GeneralObfuscator
              |
              +--sandmark.obfuscate.MethodObfuscator
Direct Known Subclasses:
DPromote, FPromote, IPromote, LPromote, PromoteLocals

public abstract class MethodObfuscator
extends GeneralObfuscator

A MethodObfuscator object encapsulates code for performing an obfuscation that operates on a single method.

Author:
Christian Collberg

Constructor Summary
protected MethodObfuscator()
          Constructs an obfuscator.
 
Method Summary
abstract  void apply(ClassFileCollection cfc, java.lang.String classname, java.lang.String methname, java.lang.String signat)
          Applies this obfuscation to a method contained in ClassFileCollection. #%#% We might think about specifying some sort of BLOAT object #%#% instead of class/method/signature.
 java.lang.String toString()
          Returns a string representation of this obfuscator.
 
Methods inherited from class sandmark.Algorithm
getAlgHTML, getAlgURL, getAuthor, getAuthorEmail, getConfigProperties, getDescription, getLongName, getMutations, getPostprohibited, getPostrequisites, getPostsuggestions, getPreprohibited, getPrerequisites, getPresuggestions, getReferences, getShortName, setConfigProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MethodObfuscator

protected MethodObfuscator()
Constructs an obfuscator.

Method Detail

apply

public abstract void apply(ClassFileCollection cfc,
                           java.lang.String classname,
                           java.lang.String methname,
                           java.lang.String signat)
                    throws java.lang.Exception
Applies this obfuscation to a method contained in ClassFileCollection. #%#% We might think about specifying some sort of BLOAT object #%#% instead of class/method/signature.

Parameters:
cfc -
classname -
methname -
signat -
java.lang.Exception

toString

public java.lang.String toString()
Returns a string representation of this obfuscator.

Overrides:
toString in class java.lang.Object
Returns:
the string MethodObfuscator(shortname)

SandMark version 2.0

Mon Jun 17 12:30:47 MST 2002