|
SandMark version 2.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sandmark.Algorithm | +--sandmark.obfuscate.GeneralObfuscator | +--sandmark.obfuscate.AppObfuscator | +--sandmark.obfuscate.renameidentifiers.NameObfuscator
Constructor Summary | |
NameObfuscator()
|
Method Summary | |
void |
apply(ClassFileCollection cfc)
Applies this obfuscation to a program contained in a ClassFileCollection. |
java.lang.String |
getAlgHTML()
Gives a description of what the algorithm does. |
java.lang.String |
getAlgURL()
Specifies the URL of where the user can find more information about the algorithm. |
java.lang.String |
getAuthor()
Specifies the author of the algorithm. |
java.lang.String |
getAuthorEmail()
Specifies the email address author of the algorithm. |
ConfigProperties |
getConfigProperties()
Gets the ConfigProperties object which specifies the parameters for this run of the algorithm. |
java.lang.String |
getDescription()
Specifies what this algorithm does, briefly. |
java.lang.String |
getLongName()
Specifies this algorithm's long name. |
ModificationProperty[] |
getMutations()
Specifies the types of modifications that the algorithm makes. |
java.lang.String |
getShortName()
Specifies this algorithm's short name. |
static void |
main(java.lang.String[] args)
|
(package private) void |
renameFields(java.util.Collection classes)
Changes the names of all fields in the application, and updates all references to fields. |
(package private) void |
renameMethods(java.util.Collection classes,
ClassHierarchy ch)
Changes all of the names in every method of the application, including the parameter names, and local var names. |
void |
setConfigProperties(ConfigProperties props)
Sets the ConfigProperties object which specifies the parameters for this run of the algorithm. |
Methods inherited from class sandmark.obfuscate.AppObfuscator |
toString |
Methods inherited from class sandmark.Algorithm |
getPostprohibited, getPostrequisites, getPostsuggestions, getPreprohibited, getPrerequisites, getPresuggestions, getReferences |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public NameObfuscator()
Method Detail |
public void apply(ClassFileCollection cfc) throws java.io.IOException
AppObfuscator
apply
in class AppObfuscator
cfc
-
java.io.IOException
void renameFields(java.util.Collection classes)
void renameMethods(java.util.Collection classes, ClassHierarchy ch)
public java.lang.String getShortName()
Algorithm
getShortName
in class Algorithm
public java.lang.String getLongName()
Algorithm
getLongName
in class Algorithm
public java.lang.String getAlgHTML()
Algorithm
getAlgHTML
in class Algorithm
public java.lang.String getAlgURL()
Algorithm
getAlgURL
in class Algorithm
public ConfigProperties getConfigProperties()
Algorithm
getConfigProperties
in class Algorithm
public void setConfigProperties(ConfigProperties props)
Algorithm
setConfigProperties
in class Algorithm
props
- the parameters for this run of the algorithmpublic java.lang.String getAuthor()
Algorithm
getAuthor
in class Algorithm
public java.lang.String getAuthorEmail()
Algorithm
getAuthorEmail
in class Algorithm
public java.lang.String getDescription()
Algorithm
getDescription
in class Algorithm
public ModificationProperty[] getMutations()
Algorithm
ModificationProperty
.
NOTE: This method will be tagged abstract
as
of 06/05/2002; at that time, all Sandmark algorithms should provide
their own implementation.
getMutations
in class Algorithm
public static void main(java.lang.String[] args)
|
SandMark version 2.0 Mon Jun 17 12:30:47 MST 2002 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |