You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bcel-user@jakarta.apache.org by Sergio Ciruela Martín <sc...@ugr.es> on 2009/03/12 10:00:34 UTC

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


---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-user-help@jakarta.apache.org