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. 192
      jode/jode/obfuscator/ConstantRuntimeEnvironment.java

@ -56,96 +56,160 @@ 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"));
addWhite(Reference.getReference
("Ljava/lang/StringBuffer;", "<init>",
"(Ljava/lang/String;)V")); "(Ljava/lang/String;)V"));
addWhite(new Reference("Ljava/lang/StringBuffer;", "append", addWhite(Reference.getReference
("Ljava/lang/StringBuffer;", "append",
"(Ljava/lang/String;)Ljava/lang/StringBuffer;")); "(Ljava/lang/String;)Ljava/lang/StringBuffer;"));
addWhite(new Reference("Ljava/lang/StringBuffer;", "append", addWhite(Reference.getReference
("Ljava/lang/StringBuffer;", "append",
"(C)Ljava/lang/StringBuffer;")); "(C)Ljava/lang/StringBuffer;"));
addWhite(new Reference("Ljava/lang/StringBuffer;", "append", addWhite(Reference.getReference
("Ljava/lang/StringBuffer;", "append",
"(B)Ljava/lang/StringBuffer;")); "(B)Ljava/lang/StringBuffer;"));
addWhite(new Reference("Ljava/lang/StringBuffer;", "append", addWhite(Reference.getReference
("Ljava/lang/StringBuffer;", "append",
"(S)Ljava/lang/StringBuffer;")); "(S)Ljava/lang/StringBuffer;"));
addWhite(new Reference("Ljava/lang/StringBuffer;", "append", addWhite(Reference.getReference
("Ljava/lang/StringBuffer;", "append",
"(Z)Ljava/lang/StringBuffer;")); "(Z)Ljava/lang/StringBuffer;"));
addWhite(new Reference("Ljava/lang/StringBuffer;", "append", addWhite(Reference.getReference
("Ljava/lang/StringBuffer;", "append",
"(F)Ljava/lang/StringBuffer;")); "(F)Ljava/lang/StringBuffer;"));
addWhite(new Reference("Ljava/lang/StringBuffer;", "append", addWhite(Reference.getReference
("Ljava/lang/StringBuffer;", "append",
"(I)Ljava/lang/StringBuffer;")); "(I)Ljava/lang/StringBuffer;"));
addWhite(new Reference("Ljava/lang/StringBuffer;", "append", addWhite(Reference.getReference
("Ljava/lang/StringBuffer;", "append",
"(J)Ljava/lang/StringBuffer;")); "(J)Ljava/lang/StringBuffer;"));
addWhite(new Reference("Ljava/lang/StringBuffer;", "append", addWhite(Reference.getReference
("Ljava/lang/StringBuffer;", "append",
"(D)Ljava/lang/StringBuffer;")); "(D)Ljava/lang/StringBuffer;"));
addWhite(new Reference("Ljava/lang/StringBuffer;", "toString", addWhite(Reference.getReference
("Ljava/lang/StringBuffer;", "toString",
"()Ljava/lang/String;")); "()Ljava/lang/String;"));
addWhite(new Reference("Ljava/lang/String;", "<init>", "()V")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/String;", "<init>", "([C)V")); ("Ljava/lang/String;", "<init>", "()V"));
addWhite(new Reference("Ljava/lang/String;", "<init>", "([CII)V")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/String;", "<init>", ("Ljava/lang/String;", "<init>", "([C)V"));
addWhite(Reference.getReference
("Ljava/lang/String;", "<init>", "([CII)V"));
addWhite(Reference.getReference
("Ljava/lang/String;", "<init>",
"(Ljava/lang/String;)V")); "(Ljava/lang/String;)V"));
addWhite(new Reference("Ljava/lang/String;", "<init>", addWhite(Reference.getReference
("Ljava/lang/String;", "<init>",
"(Ljava/lang/StringBuffer;)V")); "(Ljava/lang/StringBuffer;)V"));
addWhite(new Reference("Ljava/lang/String;", "length", "()I")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/String;", "replace", ("Ljava/lang/String;", "length", "()I"));
addWhite(Reference.getReference
("Ljava/lang/String;", "replace",
"(CC)Ljava/lang/String;")); "(CC)Ljava/lang/String;"));
addWhite(new Reference("Ljava/lang/String;", "valueOf", addWhite(Reference.getReference
("Ljava/lang/String;", "valueOf",
"(Z)Ljava/lang/String;")); "(Z)Ljava/lang/String;"));
addWhite(new Reference("Ljava/lang/String;", "valueOf", addWhite(Reference.getReference
("Ljava/lang/String;", "valueOf",
"(B)Ljava/lang/String;")); "(B)Ljava/lang/String;"));
addWhite(new Reference("Ljava/lang/String;", "valueOf", addWhite(Reference.getReference
("Ljava/lang/String;", "valueOf",
"(S)Ljava/lang/String;")); "(S)Ljava/lang/String;"));
addWhite(new Reference("Ljava/lang/String;", "valueOf", addWhite(Reference.getReference
("Ljava/lang/String;", "valueOf",
"(C)Ljava/lang/String;")); "(C)Ljava/lang/String;"));
addWhite(new Reference("Ljava/lang/String;", "valueOf", addWhite(Reference.getReference
("Ljava/lang/String;", "valueOf",
"(D)Ljava/lang/String;")); "(D)Ljava/lang/String;"));
addWhite(new Reference("Ljava/lang/String;", "valueOf", addWhite(Reference.getReference
("Ljava/lang/String;", "valueOf",
"(F)Ljava/lang/String;")); "(F)Ljava/lang/String;"));
addWhite(new Reference("Ljava/lang/String;", "valueOf", addWhite(Reference.getReference
("Ljava/lang/String;", "valueOf",
"(I)Ljava/lang/String;")); "(I)Ljava/lang/String;"));
addWhite(new Reference("Ljava/lang/String;", "valueOf", addWhite(Reference.getReference
("Ljava/lang/String;", "valueOf",
"(J)Ljava/lang/String;")); "(J)Ljava/lang/String;"));
addWhite(new Reference("Ljava/lang/String;", "valueOf", addWhite(Reference.getReference
("Ljava/lang/String;", "valueOf",
"(Ljava/lang/Object;)Ljava/lang/String;")); "(Ljava/lang/Object;)Ljava/lang/String;"));
addWhite(new Reference("Ljava/lang/String;", "substring", addWhite(Reference.getReference
("Ljava/lang/String;", "substring",
"(I)Ljava/lang/String;")); "(I)Ljava/lang/String;"));
addWhite(new Reference("Ljava/lang/String;", "substring", addWhite(Reference.getReference
("Ljava/lang/String;", "substring",
"(II)Ljava/lang/String;")); "(II)Ljava/lang/String;"));
addWhite(new Reference("Ljava.lang/reflect/Modifier;", "toString", addWhite(Reference.getReference
("Ljava.lang/reflect/Modifier;", "toString",
"(I)Ljava/lang/String;")); "(I)Ljava/lang/String;"));
addWhite(new Reference("Ljava/lang/Math;", "abs", "(D)D")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/Math;", "abs", "(F)F")); ("Ljava/lang/Math;", "abs", "(D)D"));
addWhite(new Reference("Ljava/lang/Math;", "abs", "(I)I")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/Math;", "abs", "(J)J")); ("Ljava/lang/Math;", "abs", "(F)F"));
addWhite(new Reference("Ljava/lang/Math;", "acos", "(D)D")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/Math;", "asin", "(D)D")); ("Ljava/lang/Math;", "abs", "(I)I"));
addWhite(new Reference("Ljava/lang/Math;", "atan", "(D)D")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/Math;", "atan2", "(D)D")); ("Ljava/lang/Math;", "abs", "(J)J"));
addWhite(new Reference("Ljava/lang/Math;", "ceil", "(D)D")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/Math;", "cos", "(D)D")); ("Ljava/lang/Math;", "acos", "(D)D"));
addWhite(new Reference("Ljava/lang/Math;", "exp", "(D)D")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/Math;", "floor", "(D)D")); ("Ljava/lang/Math;", "asin", "(D)D"));
addWhite(new Reference("Ljava/lang/Math;", "IEEEremainder", "(DD)D")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/Math;", "log", "(D)D")); ("Ljava/lang/Math;", "atan", "(D)D"));
addWhite(new Reference("Ljava/lang/Math;", "max", "(DD)D")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/Math;", "max", "(FF)F")); ("Ljava/lang/Math;", "atan2", "(D)D"));
addWhite(new Reference("Ljava/lang/Math;", "max", "(II)I")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/Math;", "max", "(JJ)J")); ("Ljava/lang/Math;", "ceil", "(D)D"));
addWhite(new Reference("Ljava/lang/Math;", "min", "(DD)D")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/Math;", "min", "(FF)F")); ("Ljava/lang/Math;", "cos", "(D)D"));
addWhite(new Reference("Ljava/lang/Math;", "min", "(II)I")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/Math;", "min", "(JJ)J")); ("Ljava/lang/Math;", "exp", "(D)D"));
addWhite(new Reference("Ljava/lang/Math;", "pow", "(DD)D")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/Math;", "rint", "(D)D")); ("Ljava/lang/Math;", "floor", "(D)D"));
addWhite(new Reference("Ljava/lang/Math;", "round", "(D)J")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/Math;", "round", "(F)I")); ("Ljava/lang/Math;", "IEEEremainder", "(DD)D"));
addWhite(new Reference("Ljava/lang/Math;", "sin", "(D)D")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/Math;", "sqrt", "(D)D")); ("Ljava/lang/Math;", "log", "(D)D"));
addWhite(new Reference("Ljava/lang/Math;", "tan", "(D)D")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/Math;", "toDegrees", "(D)D")); ("Ljava/lang/Math;", "max", "(DD)D"));
addWhite(new Reference("Ljava/lang/Math;", "toRadians", "(D)D")); addWhite(Reference.getReference
addWhite(new Reference("Ljava/lang/Math;", "E", "D")); ("Ljava/lang/Math;", "max", "(FF)F"));
addWhite(new Reference("Ljava/lang/Math;", "PI", "D")); 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;

Loading…
Cancel
Save