mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 18:40:45 +00:00
AS1/2 renaming identifiers (deobfuscation)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user