Method Summary |
|
public void | addClassFile(ClassFile cf) Add a classfile's package, class, method and field entries to the internal
database. |
public void | addIgnoreClassRegex(String regex) Adds a regular expression to the class name pattern list which is used
to prevent classes from being obfuscated. |
public void | addIgnoreDefaultRegex(String regex) Adds a regular expression to the name pattern list which is used to
prevent packages, classes etc. |
public void | addIgnoreFieldRegex(ScriptEntry entry) Adds a regular expression to the package name pattern list which is used
to prevent field names from being obfuscated. |
public void | addIgnoreMethodRegex(ScriptEntry entry) Adds a regular expression to the package name pattern list which is used
to prevent method names from being obfuscated. |
public void | addIgnorePackageRegex(String regex) Adds a regular expression to the package name pattern list which is used
to prevent packages from being obfuscated. |
public void | addObfuscateClassRegex(String regex) Adds a regular expression to the class name pattern list which is used
to force classes to get obfuscated. |
public void | addObfuscateDefaultRegex(String regex) Adds a regular expression to the name pattern list which is used to
force packages, classes etc. |
public void | addObfuscateFieldRegex(ScriptEntry entry) Adds a regular expression to the package name pattern list which is used
to force field names to get obfuscated. |
public void | addObfuscateMethodRegex(ScriptEntry entry) Adds a regular expression to the package name pattern list which is used
to force method names to get obfuscated. |
public void | addObfuscatePackageRegex(String regex) Adds a regular expression to the package name pattern list which is used
to force packages to get obfuscated. |
public void | addSerializableField(Fd fd) Adds a field item which could be a serializable field item inside the tree
to the list of fields that may not be obfuscated. |
public void | addSerializableMethod(Md md) Adds a method item which could be a serializable method item inside the
tree to the list of methods that may not be obfuscated. |
public boolean | canAutoCorrectClassNames() Returns whether we prevent hardcoded class names from being obfuscated. |
public boolean | canObfuscateResources() Returns whether resource file names should be obfuscated according to
their corresponding class files or not. |
public boolean | canUseRmicClasses() Returns true if the obfuscator should respect stub and skeleton class
names. |
public void | dump() Dump the content of the class tree to the specified file (used for
logging). |
public Cl | findClass(String fullName) Find a class in the tree from the fully qualified name. |
public Iterator | findClasses(Pattern pattern) Find all classes in the tree that match a given pattern. |
public Iterator | findFields(Pattern pattern, String descr) Find all methods in the tree that match a given pattern. |
public Iterator | findMethods(Pattern pattern, String descr) Find all methods in the tree that match a given pattern. |
public Iterator | findPackages(Pattern pattern) Find all packages in the tree that match a given pattern. |
public void | generateNames() Traverse the class tree and generate obfuscated names within each
namespace. |
public String[] | getAttrsToKeep() Return a list of attributes marked to keep. |
public Cl | getCl(String fullName) Get a class in the tree from the fully qualified name, returning null if
the name is not found. |
public Fd | getFd(String fullName) Get field in tree from the fully qualified name. |
public Md | getMd(String fullName, String descriptor) Get method in tree from the fully qualified name. |
public String | getOutputFileName(String inName) Update the path of the given filename. |
public Pk | getPk(String fullName) Get a package in tree from the fully qualified name. |
public Pk | getRootPackage() Returns the root package. |
public String | mapClass(String className) Mapping for fully qualified class name. |
public String | mapDescriptor(String descriptor) Mapping for descriptor of field or method. |
public String | mapField(String className, String fieldName) Mapping for field name, of fully qualified class. |
public String | mapMethod(String className, String methodName, String descriptor) Mapping for method name, of fully qualified class. |
public void | markRemoteClasses() Walk through the tree and check which classes implement java.rmi.Remote
or java.rmi.server.Skeleton. |
public void | parseObfuscateAndIgnoreList() Walk through the tree and mark all elements that must be obfuscated and
all elements that should be completely ignored in the obfuscation step. |
public void | resolveClasses() Resolve the polymorphic dependencies of each class. |
public void | retainAttribute(ScriptEntry entry) Mark an attribute type for retention. |
public void | retainHardcodedReferences() Prevent the names of classes that are used in hardcoded references from
being obfuscated. |
public void | retainMappings(Vector mappings) Retain all available package, class, method and field mappings thar are
specified in the given vector. |
public void | retainRemoteClasses() Obfuscates the names of special classes (such as classes created by rmic)
so that they correspond to their original classes. |
public void | retainSerializableElements() Prevent the names of serializable fields and methods from being
obfuscated. |
public void | setAutoCorrectClassNames(String autoCorrect) Defines whether we should automatically prevent hardcoded class names from
being obfuscated. |
public void | setAutoCorrectClassNames(boolean autoCorrect) Defines whether we should automatically prevent hardcoded class names from
being obfuscated. |
public void | setObfuscateResources(String obfuscate) Defines whether resource file names should be obfuscated according to
their corresponding class files or not. |
public void | setObfuscateResources(boolean obfuscate) Defines whether resource file names should be obfuscated according to
their corresponding class files or not. |
protected void | setRootPackage(Pk pk) Sets the root package level. |
public void | setUseRmicClasses(String canUse) Defines whether or not the obfuscator should respect the names of stub
and skeleton classes generated by rmic. |
public void | setUseRmicClasses(boolean canUse) Defines whether or not the obfuscator should respect the names of stub
and skeleton classes generated by rmic. |
public void | walkTree(TreeAction ta) Walk the whole tree taking action once only on each package level, class,
method and field. |
public void | walkTree(TreeAction ta, TreeItem ti) Walk the given subtree taking action once only on each package level,
class, method and field. |