This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Function Arguments
- From: Per Bothner <per at bothner dot com>
- To: Volkan YAZICI <yazicivo at ttmail dot com>
- Cc: kawa at sourceware dot org
- Date: Mon, 13 Oct 2008 10:23:59 -0700
- Subject: Re: Function Arguments
- References: <87od1obt7q.fsf@alamut.mobiliz.com.tr>
Volkan YAZICI wrote:
Hi,
How can I get the argument list of a previously defined function?
(Something similar to FUNCTION-LAMBDA-EXPRESSION in Common Lisp.)
No supported to get it, but take a look in gnu/mapping/Procedure.java.
You can use minArg/maxArgs.
Also, if the procedure is a MethodProc (which it usually is),
you can use getParameterType(int). That isn't guaranteed to
give a useful result, but may be helpful.
--
--Per Bothner
per@bothner.com http://per.bothner.com/