python 3.x - How to use java reflection in jython? -


i new jython. want use java reflection api in jython. read forums nothing helps me. used below java code , working fine.

class[] paramstring = new class[] {java.lang.string.class} class cls = class.forname("readexcel") method method = cls.getdeclaredmethod("read", paramstring) object clone = cls.newinstance() method.invoke(clone, "test") 

but don't know how use in jython. please provide me if tutorials available jython.

here example of iterating class methods. this one shows how hack (i.e. extend) classpath @ runtime.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

image - ClassNotFoundException when add a prebuilt apk into system.img in android -