mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-27 09:51:27 +00:00
Initial version based on previous work. (Version alpha 7)
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package com.jpexs.asdec.action.treemodel;
|
||||
|
||||
import com.jpexs.asdec.action.Action;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class FunctionTreeItem extends TreeItem {
|
||||
public List<TreeItem> actions;
|
||||
public List<String> constants;
|
||||
|
||||
public FunctionTreeItem(Action instruction, List<TreeItem> actions,ConstantPool constants) {
|
||||
super(instruction,PRECEDENCE_PRIMARY);
|
||||
this.actions=actions;
|
||||
this.constants=constants.constants;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString(ConstantPool constants) {
|
||||
return "function()\r\n{\r\n"+Action.treeToString(actions)+"}";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user