mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-07 08:06:30 +00:00
missing file
This commit is contained in:
@@ -16,6 +16,9 @@
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.ecma;
|
||||
|
||||
import com.jpexs.decompiler.flash.action.swf4.ConstantIndex;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author JPEXS
|
||||
@@ -296,6 +299,16 @@ public class EcmaScript {
|
||||
return toString(o, false);
|
||||
}
|
||||
|
||||
public static String toString(Object o, List<String> constantPool) {
|
||||
if (o instanceof ConstantIndex) {
|
||||
int index = ((ConstantIndex) o).index;
|
||||
if (constantPool != null && index < constantPool.size()) {
|
||||
return constantPool.get(index);
|
||||
}
|
||||
}
|
||||
return toString(o, false);
|
||||
}
|
||||
|
||||
public static String toString(Object o, boolean maxPrecision) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
|
||||
Reference in New Issue
Block a user