Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/350.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 使用字符串数组调用函数_Java_Actionscript_Air Native Extension - Fatal编程技术网

Java 使用字符串数组调用函数

Java 使用字符串数组调用函数,java,actionscript,air-native-extension,Java,Actionscript,Air Native Extension,是否可以调用外部方法: this.extContext.call("GenerateProductsFunction", productList); 并检索字符串数组?: public class GenerateProductsFunction implements FREFunction{ @Override public FREObject call(FREContext context, FREObject[] args) { args[0] // G

是否可以调用外部方法:

this.extContext.call("GenerateProductsFunction", productList);
并检索字符串数组?:

public class GenerateProductsFunction implements FREFunction{
    @Override
    public FREObject call(FREContext context, FREObject[] args) {

        args[0] // Get as Array?

        return null;
    }
}

如果发回数组,args[0]类型将是FREArray,它是FREObject的子类


如果发回数组,args[0]类型将是FREArray,它是FREObject的子类


通过反复试验,我自己发现了这一点。谢谢你的回复。通过反复试验,我自己发现了这一点。谢谢你的回复。