AS1/2 and AS3 now share common decompiling method

This commit is contained in:
Jindra Petk
2013-02-24 22:46:42 +01:00
parent 6d644179ca
commit 8baa5691e9
423 changed files with 5610 additions and 4709 deletions

View File

@@ -16,8 +16,8 @@
*/
package com.jpexs.decompiler.flash.action.treemodel;
import com.jpexs.decompiler.flash.action.Action;
import com.jpexs.decompiler.flash.action.swf4.ConstantIndex;
import com.jpexs.decompiler.flash.graph.GraphSourceItem;
import com.jpexs.decompiler.flash.helpers.Helper;
import java.util.List;
@@ -26,7 +26,7 @@ public class DirectValueTreeItem extends TreeItem {
public Object value;
public List<String> constants;
public DirectValueTreeItem(Action instruction, int instructionPos, Object value, List<String> constants) {
public DirectValueTreeItem(GraphSourceItem instruction, int instructionPos, Object value, List<String> constants) {
super(instruction, PRECEDENCE_PRIMARY);
this.constants = constants;
this.value = value;
@@ -65,7 +65,7 @@ public class DirectValueTreeItem extends TreeItem {
}
@Override
public String toStringNoQuotes(ConstantPool constants) {
public String toStringNoQuotes(List localData) {
if (value instanceof Double) {
if (Double.compare((double) (Double) value, 0) == 0) {
return hilight("0");