> > Seems like it could be do-able. If you don't strip the parameter > names when you compile the Java code, they're available in the > class files. You'd have to separately parse the class files to > discover them, though since they're not exposed in the reflection > API. It could be a little expensive to parse whole class files for > small scripts that make use of named parameters. >
Well for the most part, I'm talking about a first class change the Java 6 or 7 where Class.class gets and extra getMethod(..) and Method.class gets a getParameterNames(). However, and wondering of there is a case for a QDox leveraging codehaus project that would gather method params, shove them in a .txt file for inclusion in the jar, plus some fairly public-domain code to access it for tools like JRuby (and a dozen web frameworks) that would want to leverage it. It's about a days worth of code to get to a usable 1.0. - Paul ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Jruby-devel mailing list Jruby-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jruby-devel