Method.Invoke
Sergio Ciruela MartÃn <[email protected]> Thu, 12 Mar 2009 10:00:34 +0100 (CET)
| Newsgroups | gmane.comp.jakarta.bcel.user |
|---|---|
| Message-ID | <[email protected]> |
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