mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-26 13:20:45 +00:00
AS1/2 better deobfuscation
code formatting
This commit is contained in:
@@ -24,6 +24,7 @@ public class CallFunctionTreeItem extends TreeItem {
|
||||
|
||||
public GraphTargetItem functionName;
|
||||
public List<GraphTargetItem> arguments;
|
||||
public GraphTargetItem calculatedFunction;
|
||||
|
||||
public CallFunctionTreeItem(GraphSourceItem instruction, GraphTargetItem functionName, List<GraphTargetItem> arguments) {
|
||||
super(instruction, PRECEDENCE_PRIMARY);
|
||||
@@ -52,4 +53,28 @@ public class CallFunctionTreeItem extends TreeItem {
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isCompileTime() {
|
||||
if (calculatedFunction == null) {
|
||||
return false;
|
||||
}
|
||||
return calculatedFunction.isCompileTime();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean toBoolean() {
|
||||
if (calculatedFunction == null) {
|
||||
return false;
|
||||
}
|
||||
return calculatedFunction.toBoolean();
|
||||
}
|
||||
|
||||
@Override
|
||||
public double toNumber() {
|
||||
if (calculatedFunction == null) {
|
||||
return 0;
|
||||
}
|
||||
return calculatedFunction.toNumber();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user