Jay, It's all there under the hood, but you can't get to it without hacking the code a bit.
In Java.pm there is a local variable called @INLINES. Dump it with Data::Dumper and you will find what you are looking for. Look here: $INLINES[]->{ILSM}->{data}->[]->{classes}->{}->{methods} I'll add a Inline::Java::__get_INLINES function in the next version so you can get to it in the future. Patrick On 9/26/06, Jay Strauss <[EMAIL PROTECTED]> wrote:
Hi, I'm using Inline::Java. I was wondering if there is anywhere on the Perl side of things in which I can learn what Java method declarations occurred in the Java section. That is, I want to learn the names and parameters of the Java methods, at runtime. For example if I have the code below, I'd like to somehow from the Perl side get a structure like: tickPrice => [qw/tickerId field price canAutoExecute/] back (obviously any structured return would be cool). Currently I'm doing a kluge of reading the source file (that's currently running), and parsing the Java, into what I need. It works, but its a bug waiting to happen (IMO). thanks Jay __Java__ import org.perl.inline.java.*; import com.ib.client.*; class Inline_Bridge extends InlineJavaPerlCaller implements EWrapper { InlineJavaPerlObject perlobj; public Inline_Bridge(InlineJavaPerlObject PerlObj) throws InlineJavaException { perlobj = PerlObj; } public void tickPrice(int tickerId, int field, double price, int canAutoExecute) { try { perlobj.InvokeMethod("tickPrice", new Object [] { tickerId, field, price, canAutoExecute }); } catch (InlineJavaPerlException pe){ } catch (InlineJavaException pe) { pe.printStackTrace() ;} } ...
-- ===================== Patrick LeBoutillier Laval, Québec, Canada