Suppose i have a file and its name is file.txt It consists of scripts for the reflection method in java. Suppose some of it are:
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.
The script from the file would be picked up as string in the program. How will i convert it to the arguments i specified above for reflection. Am blind on this one! a bit description with some code help would be appreciated as am new to java.