Sergio Ciruela Martín | 12 Mar 2009 10:00
Picon

Method.Invoke

Hi!

How I can use Invoke method from bcel. I would like to simulate the next
process but using BCEL API to avoid castings and searchs.

Method m=clazz.getMethod("x");
m.invoke(new class(),objs[]);

In java.lang.reflect.invoke Object invoke(Object obj, Object[] args)
Invokes the underlying method represented by this Method object, on the
specified object with the specified parameters.

Thanks

Gmane