missing file

This commit is contained in:
honfika@gmail.com
2015-10-19 10:33:58 +02:00
parent c7a9c0f824
commit d5fee60f26

View File

@@ -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";