mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 05:30:45 +00:00
Initial version based on previous work. (Version alpha 7)
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
package com.jpexs.asdec.action.swf5;
|
||||
|
||||
import com.jpexs.asdec.action.Action;
|
||||
import com.jpexs.asdec.action.treemodel.ConstantPool;
|
||||
import com.jpexs.asdec.action.treemodel.InitObjectTreeItem;
|
||||
import com.jpexs.asdec.action.treemodel.TreeItem;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Stack;
|
||||
|
||||
public class ActionInitObject extends Action {
|
||||
|
||||
public ActionInitObject() {
|
||||
super(0x43, 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "InitObject";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void translate(Stack<TreeItem> stack, ConstantPool constants, List<TreeItem> output) {
|
||||
long numArgs = popLong(stack);
|
||||
List<TreeItem> values = new ArrayList<TreeItem>();
|
||||
List<TreeItem> names = new ArrayList<TreeItem>();
|
||||
for (long l = 0; l < numArgs; l++) {
|
||||
values.add(stack.pop());
|
||||
names.add(stack.pop());
|
||||
}
|
||||
stack.push(new InitObjectTreeItem(this, names, values));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user