mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-27 15:50:46 +00:00
using stringbuilder for generating the AS source
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
package com.jpexs.decompiler.flash.action.model;
|
||||
|
||||
import com.jpexs.decompiler.flash.action.swf4.ActionGetURL2;
|
||||
import com.jpexs.decompiler.flash.helpers.HilightedTextWriter;
|
||||
import com.jpexs.decompiler.graph.GraphSourceItem;
|
||||
import com.jpexs.decompiler.graph.GraphTargetItem;
|
||||
import com.jpexs.decompiler.graph.SourceGenerator;
|
||||
@@ -49,7 +50,7 @@ public class LoadVariablesActionItem extends ActionItem {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString(boolean highlight, ConstantPool constants) {
|
||||
public HilightedTextWriter toString(HilightedTextWriter writer, ConstantPool constants) {
|
||||
String methodStr = "";
|
||||
if (method == 1) {
|
||||
methodStr = ",\"GET\"";
|
||||
@@ -57,7 +58,11 @@ public class LoadVariablesActionItem extends ActionItem {
|
||||
if (method == 2) {
|
||||
methodStr = ",\"POST\"";
|
||||
}
|
||||
return hilight("loadVariables(", highlight) + urlString.toString(highlight, constants) + hilight(",", highlight) + targetString.toString(highlight, constants) + hilight(methodStr + ")", highlight);
|
||||
hilight("loadVariables(", writer);
|
||||
urlString.toString(writer, constants);
|
||||
hilight(",", writer);
|
||||
targetString.toString(writer, constants);
|
||||
return hilight(methodStr + ")", writer);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user