AS1/2 renaming identifiers (deobfuscation)

This commit is contained in:
Jindra Pet��k
2013-03-23 16:51:14 +01:00
parent 60a8549192
commit cb663834cf
8 changed files with 396 additions and 11 deletions
@@ -88,6 +88,26 @@ public class DirectValueTreeItem extends TreeItem {
return hilight(value.toString());
}
public String toStringNoH(ConstantPool constants) {
if (value instanceof Double) {
if (Double.compare((double) (Double) value, 0) == 0) {
return ("0");
}
}
if (value instanceof Float) {
if (Float.compare((float) (Float) value, 0) == 0) {
return ("0");
}
}
if (value instanceof String) {
return (String) value;
}
if (value instanceof ConstantIndex) {
return (this.constants.get(((ConstantIndex) value).index));
}
return value.toString();
}
@Override
public String toString(ConstantPool constants) {
if (value instanceof Double) {