SandMark version 3.0


sandmark.obfuscate
Class MethodObfuscator

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

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.
 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.

Parameters:
cfc - the collection of classes for the entire application that this method is a part of
classname - the name of the class that this method is in
methname - the name of the method to obfuscate
signat - the signature of the method to obfuscate
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 3.0

Wed Jan 29 10:30:05 MST 2003