?
=?iso-8859-1?B?bW9vcJk=?=
Hi,
I am building my own scripting language(or dynamic language, whatever)
in Java. I wish can user other Java library inside the language,
calling methods of Java objects.
In this language, only three types of primitive data types, which are
numeric, string and boolean. I can map these three kinds of data types
to those of Java. But dont know how to invoke Java method properly. I
am considering Reflection(and seems it is the only way to do so) to
call Java methods, but confused with handling class constructor and
array mapping questions. Any one can give me suggestion or recommend
some existed projects for reference? Thanks!
I am building my own scripting language(or dynamic language, whatever)
in Java. I wish can user other Java library inside the language,
calling methods of Java objects.
In this language, only three types of primitive data types, which are
numeric, string and boolean. I can map these three kinds of data types
to those of Java. But dont know how to invoke Java method properly. I
am considering Reflection(and seems it is the only way to do so) to
call Java methods, but confused with handling class constructor and
array mapping questions. Any one can give me suggestion or recommend
some existed projects for reference? Thanks!