static methods that tell which codeanalyzer / transformer to use

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@1015 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent bf0d0cceb7
commit 6eac2f2aea
  1. 15
      jode/jode/obfuscator/Main.java

@ -28,9 +28,11 @@ import java.io.PrintWriter;
import java.io.File;
///#ifdef JDK12
///import java.util.Collection;
///import java.util.Arrays;
///import java.util.HashSet;
///#else
import jode.util.Collection;
import jode.util.Arrays;
import jode.util.HashSet;
///#endif
@ -181,6 +183,19 @@ public class Main {
return bundle;
}
public static CodeAnalyzer createCodeAnalyzer() {
return new ConstantAnalyzer() /*XXX*/;
}
static CodeTransformer[] codeTransformers = {
new LocalOptimizer(),
new RemovePopAnalyzer()
};
public static Collection getCodeTransformers() {
return Arrays.asList(codeTransformers);
}
public static void main(String[] params) {
int i;
String sourcePath = System.getProperty("java.class.path")

Loading…
Cancel
Save