New AS3 Deobfuscation method similar to that for AS1/2

This commit is contained in:
Jindra Petřík
2015-06-20 20:27:39 +02:00
parent 176f8b6de7
commit 84398eaccf
22 changed files with 1890 additions and 1705 deletions
@@ -16,15 +16,17 @@
*/
package com.jpexs.decompiler.graph;
import java.util.Stack;
/**
*
* @author JPEXS
*/
public class ScopeStack extends TranslateStack {
public ScopeStack(boolean allowEmpty) {
super(allowEmpty ? "scope" : null);
}
public ScopeStack() {
super("scope");
this(true);
}
}
@@ -65,4 +65,14 @@ public class FalseItem extends GraphTargetItem implements LogicalOpItem, SimpleV
return true;
}
@Override
public boolean isCompileTime() {
return true;
}
@Override
public Object getResult() {
return Boolean.FALSE;
}
}
@@ -65,4 +65,15 @@ public class TrueItem extends GraphTargetItem implements LogicalOpItem, SimpleVa
public boolean isSimpleValue() {
return true;
}
@Override
public boolean isCompileTime() {
return true;
}
@Override
public Object getResult() {
return Boolean.TRUE;
}
}