use Reference.getReference

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@714 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent eb8092e90a
commit e0ca7fe5be
  1. 246
      jode/jode/obfuscator/ConstantRuntimeEnvironment.java

@ -56,98 +56,162 @@ public class ConstantRuntimeEnvironment extends SimpleRuntimeEnvironment {
///#endif ///#endif
static { static {
addWhite(new Reference("Ljava/lang/String;", "toCharArray", "()[C")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/StringBuffer;", "<init>", ("Ljava/lang/String;", "toCharArray", "()[C"));
"(Ljava/lang/String;)V")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/StringBuffer;", "append", ("Ljava/lang/StringBuffer;", "<init>",
"(Ljava/lang/String;)Ljava/lang/StringBuffer;")); "(Ljava/lang/String;)V"));
addWhite(new Reference("Ljava/lang/StringBuffer;", "append", addWhite(Reference.getReference
"(C)Ljava/lang/StringBuffer;")); ("Ljava/lang/StringBuffer;", "append",
addWhite(new Reference("Ljava/lang/StringBuffer;", "append", "(Ljava/lang/String;)Ljava/lang/StringBuffer;"));
"(B)Ljava/lang/StringBuffer;")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/StringBuffer;", "append", ("Ljava/lang/StringBuffer;", "append",
"(S)Ljava/lang/StringBuffer;")); "(C)Ljava/lang/StringBuffer;"));
addWhite(new Reference("Ljava/lang/StringBuffer;", "append", addWhite(Reference.getReference
"(Z)Ljava/lang/StringBuffer;")); ("Ljava/lang/StringBuffer;", "append",
addWhite(new Reference("Ljava/lang/StringBuffer;", "append", "(B)Ljava/lang/StringBuffer;"));
"(F)Ljava/lang/StringBuffer;")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/StringBuffer;", "append", ("Ljava/lang/StringBuffer;", "append",
"(I)Ljava/lang/StringBuffer;")); "(S)Ljava/lang/StringBuffer;"));
addWhite(new Reference("Ljava/lang/StringBuffer;", "append", addWhite(Reference.getReference
"(J)Ljava/lang/StringBuffer;")); ("Ljava/lang/StringBuffer;", "append",
addWhite(new Reference("Ljava/lang/StringBuffer;", "append", "(Z)Ljava/lang/StringBuffer;"));
"(D)Ljava/lang/StringBuffer;")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/StringBuffer;", "toString", ("Ljava/lang/StringBuffer;", "append",
"()Ljava/lang/String;")); "(F)Ljava/lang/StringBuffer;"));
addWhite(new Reference("Ljava/lang/String;", "<init>", "()V")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/String;", "<init>", "([C)V")); ("Ljava/lang/StringBuffer;", "append",
addWhite(new Reference("Ljava/lang/String;", "<init>", "([CII)V")); "(I)Ljava/lang/StringBuffer;"));
addWhite(new Reference("Ljava/lang/String;", "<init>", addWhite(Reference.getReference
"(Ljava/lang/String;)V")); ("Ljava/lang/StringBuffer;", "append",
addWhite(new Reference("Ljava/lang/String;", "<init>", "(J)Ljava/lang/StringBuffer;"));
"(Ljava/lang/StringBuffer;)V")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/String;", "length", "()I")); ("Ljava/lang/StringBuffer;", "append",
addWhite(new Reference("Ljava/lang/String;", "replace", "(D)Ljava/lang/StringBuffer;"));
"(CC)Ljava/lang/String;")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/String;", "valueOf", ("Ljava/lang/StringBuffer;", "toString",
"(Z)Ljava/lang/String;")); "()Ljava/lang/String;"));
addWhite(new Reference("Ljava/lang/String;", "valueOf", addWhite(Reference.getReference
"(B)Ljava/lang/String;")); ("Ljava/lang/String;", "<init>", "()V"));
addWhite(new Reference("Ljava/lang/String;", "valueOf", addWhite(Reference.getReference
"(S)Ljava/lang/String;")); ("Ljava/lang/String;", "<init>", "([C)V"));
addWhite(new Reference("Ljava/lang/String;", "valueOf", addWhite(Reference.getReference
"(C)Ljava/lang/String;")); ("Ljava/lang/String;", "<init>", "([CII)V"));
addWhite(new Reference("Ljava/lang/String;", "valueOf", addWhite(Reference.getReference
"(D)Ljava/lang/String;")); ("Ljava/lang/String;", "<init>",
addWhite(new Reference("Ljava/lang/String;", "valueOf", "(Ljava/lang/String;)V"));
"(F)Ljava/lang/String;")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/String;", "valueOf", ("Ljava/lang/String;", "<init>",
"(I)Ljava/lang/String;")); "(Ljava/lang/StringBuffer;)V"));
addWhite(new Reference("Ljava/lang/String;", "valueOf", addWhite(Reference.getReference
"(J)Ljava/lang/String;")); ("Ljava/lang/String;", "length", "()I"));
addWhite(new Reference("Ljava/lang/String;", "valueOf", addWhite(Reference.getReference
"(Ljava/lang/Object;)Ljava/lang/String;")); ("Ljava/lang/String;", "replace",
addWhite(new Reference("Ljava/lang/String;", "substring", "(CC)Ljava/lang/String;"));
"(I)Ljava/lang/String;")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/String;", "substring", ("Ljava/lang/String;", "valueOf",
"(II)Ljava/lang/String;")); "(Z)Ljava/lang/String;"));
addWhite(new Reference("Ljava.lang/reflect/Modifier;", "toString", addWhite(Reference.getReference
"(I)Ljava/lang/String;")); ("Ljava/lang/String;", "valueOf",
addWhite(new Reference("Ljava/lang/Math;", "abs", "(D)D")); "(B)Ljava/lang/String;"));
addWhite(new Reference("Ljava/lang/Math;", "abs", "(F)F")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/Math;", "abs", "(I)I")); ("Ljava/lang/String;", "valueOf",
addWhite(new Reference("Ljava/lang/Math;", "abs", "(J)J")); "(S)Ljava/lang/String;"));
addWhite(new Reference("Ljava/lang/Math;", "acos", "(D)D")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/Math;", "asin", "(D)D")); ("Ljava/lang/String;", "valueOf",
addWhite(new Reference("Ljava/lang/Math;", "atan", "(D)D")); "(C)Ljava/lang/String;"));
addWhite(new Reference("Ljava/lang/Math;", "atan2", "(D)D")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/Math;", "ceil", "(D)D")); ("Ljava/lang/String;", "valueOf",
addWhite(new Reference("Ljava/lang/Math;", "cos", "(D)D")); "(D)Ljava/lang/String;"));
addWhite(new Reference("Ljava/lang/Math;", "exp", "(D)D")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/Math;", "floor", "(D)D")); ("Ljava/lang/String;", "valueOf",
addWhite(new Reference("Ljava/lang/Math;", "IEEEremainder", "(DD)D")); "(F)Ljava/lang/String;"));
addWhite(new Reference("Ljava/lang/Math;", "log", "(D)D")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/Math;", "max", "(DD)D")); ("Ljava/lang/String;", "valueOf",
addWhite(new Reference("Ljava/lang/Math;", "max", "(FF)F")); "(I)Ljava/lang/String;"));
addWhite(new Reference("Ljava/lang/Math;", "max", "(II)I")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/Math;", "max", "(JJ)J")); ("Ljava/lang/String;", "valueOf",
addWhite(new Reference("Ljava/lang/Math;", "min", "(DD)D")); "(J)Ljava/lang/String;"));
addWhite(new Reference("Ljava/lang/Math;", "min", "(FF)F")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/Math;", "min", "(II)I")); ("Ljava/lang/String;", "valueOf",
addWhite(new Reference("Ljava/lang/Math;", "min", "(JJ)J")); "(Ljava/lang/Object;)Ljava/lang/String;"));
addWhite(new Reference("Ljava/lang/Math;", "pow", "(DD)D")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/Math;", "rint", "(D)D")); ("Ljava/lang/String;", "substring",
addWhite(new Reference("Ljava/lang/Math;", "round", "(D)J")); "(I)Ljava/lang/String;"));
addWhite(new Reference("Ljava/lang/Math;", "round", "(F)I")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/Math;", "sin", "(D)D")); ("Ljava/lang/String;", "substring",
addWhite(new Reference("Ljava/lang/Math;", "sqrt", "(D)D")); "(II)Ljava/lang/String;"));
addWhite(new Reference("Ljava/lang/Math;", "tan", "(D)D")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/Math;", "toDegrees", "(D)D")); ("Ljava.lang/reflect/Modifier;", "toString",
addWhite(new Reference("Ljava/lang/Math;", "toRadians", "(D)D")); "(I)Ljava/lang/String;"));
addWhite(new Reference("Ljava/lang/Math;", "E", "D")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/Math;", "PI", "D")); ("Ljava/lang/Math;", "abs", "(D)D"));
addWhite(Reference.getReference
("Ljava/lang/Math;", "abs", "(F)F"));
addWhite(Reference.getReference
("Ljava/lang/Math;", "abs", "(I)I"));
addWhite(Reference.getReference
("Ljava/lang/Math;", "abs", "(J)J"));
addWhite(Reference.getReference
("Ljava/lang/Math;", "acos", "(D)D"));
addWhite(Reference.getReference
("Ljava/lang/Math;", "asin", "(D)D"));
addWhite(Reference.getReference
("Ljava/lang/Math;", "atan", "(D)D"));
addWhite(Reference.getReference
("Ljava/lang/Math;", "atan2", "(D)D"));
addWhite(Reference.getReference
("Ljava/lang/Math;", "ceil", "(D)D"));
addWhite(Reference.getReference
("Ljava/lang/Math;", "cos", "(D)D"));
addWhite(Reference.getReference
("Ljava/lang/Math;", "exp", "(D)D"));
addWhite(Reference.getReference
("Ljava/lang/Math;", "floor", "(D)D"));
addWhite(Reference.getReference
("Ljava/lang/Math;", "IEEEremainder", "(DD)D"));
addWhite(Reference.getReference
("Ljava/lang/Math;", "log", "(D)D"));
addWhite(Reference.getReference
("Ljava/lang/Math;", "max", "(DD)D"));
addWhite(Reference.getReference
("Ljava/lang/Math;", "max", "(FF)F"));
addWhite(Reference.getReference
("Ljava/lang/Math;", "max", "(II)I"));
addWhite(Reference.getReference
("Ljava/lang/Math;", "max", "(JJ)J"));
addWhite(Reference.getReference
("Ljava/lang/Math;", "min", "(DD)D"));
addWhite(Reference.getReference
("Ljava/lang/Math;", "min", "(FF)F"));
addWhite(Reference.getReference
("Ljava/lang/Math;", "min", "(II)I"));
addWhite(Reference.getReference
("Ljava/lang/Math;", "min", "(JJ)J"));
addWhite(Reference.getReference
("Ljava/lang/Math;", "pow", "(DD)D"));
addWhite(Reference.getReference
("Ljava/lang/Math;", "rint", "(D)D"));
addWhite(Reference.getReference
("Ljava/lang/Math;", "round", "(D)J"));
addWhite(Reference.getReference
("Ljava/lang/Math;", "round", "(F)I"));
addWhite(Reference.getReference
("Ljava/lang/Math;", "sin", "(D)D"));
addWhite(Reference.getReference
("Ljava/lang/Math;", "sqrt", "(D)D"));
addWhite(Reference.getReference
("Ljava/lang/Math;", "tan", "(D)D"));
addWhite(Reference.getReference
("Ljava/lang/Math;", "toDegrees", "(D)D"));
addWhite(Reference.getReference
("Ljava/lang/Math;", "toRadians", "(D)D"));
addWhite(Reference.getReference
("Ljava/lang/Math;", "E", "D"));
addWhite(Reference.getReference
("Ljava/lang/Math;", "PI", "D"));
} }
MethodIdentifier m; MethodIdentifier m;
public ConstantRuntimeEnvironment(MethodIdentifier method) { public ConstantRuntimeEnvironment(MethodIdentifier method) {
m = method; m = method;

Loading…
Cancel
Save