| java.lang.Object net.sf.javaguard.GuardDB
Constructor Summary | |
public | GuardDB() Default constructor. |
Method Summary | |
public void | obfuscate(boolean dump) Reads all class files from the Jar files and the local directories and
builds the classfile database. | public void | parseScriptFile(ClassTree classTree) Go through database marking certain entities for retention, while
maintaining polymorphic integrity. | public void | setInput(Vector jars, Vector dirs, Vector filters) Sets the list of input Jar files and directories files to obfuscate. | public void | setOutputFile(File file) Sets the output Jar file. | public void | setScriptFile(ScriptFile scriptFile) Stores the script file to use for the obfuscation. |
GuardDB | public GuardDB()(Code) | | Default constructor. Builds a classfile database for obfuscation.
|
obfuscate | public void obfuscate(boolean dump) throws IOException, MalformedPatternException(Code) | | Reads all class files from the Jar files and the local directories and
builds the classfile database.
Parameters: dump - true if the parsed class tree should be dumped to the consolebefore it is obfuscated; false else throws: IOException - if an I/O error occurs throws: MalformedPatternException - if an error occurs during the compilationof regular expressions |
setInput | public void setInput(Vector jars, Vector dirs, Vector filters) throws IllegalArgumentException(Code) | | Sets the list of input Jar files and directories files to obfuscate.
Parameters: jars - a vector that holds the list of input Jar files to obfuscate Parameters: dirs - a vector that holds a list of input directories; must have thesame size number of elements as the file filter vector Parameters: filters - a vector that holds a list of file filter expressions; musthave the same number of elements as the directories vector throws: IllegalArgumentException - if the directory and file filter vectorsdon't have the same size |
setOutputFile | public void setOutputFile(File file)(Code) | | Sets the output Jar file.
Parameters: file - the output Jar file; must not be null |
setScriptFile | public void setScriptFile(ScriptFile scriptFile)(Code) | | Stores the script file to use for the obfuscation.
Parameters: scriptFile - the script file to use for the obfuscation |
|
|