0
假设我有一个文件,它的名称是file.txt它由java中反射方法的脚本组成。假设其中一些是:使用输入字符串生成对象和函数反射
new <id> <class> <arg0> <arg1> … creates a new instance of <class> by using
a constructor that takes the given argument types and stores the result in <id>.
call <id> <method> <arg0> <arg1> … invokes the specified <method> that
takes the given arguments on the instance specified by <id> and prints the answer.
print <id> prints detailed information about the instance specified by <id>. See
below for Object details.
该文件中的脚本将作为字符串在程序中拾取。我将如何将其转换为我上面指定的参数进行反射。我瞎了这个!一些代码的帮助位描述将不胜感激,因为我是新来的Java。