[Armedbear-devel] Access to private methods from ABCL?
Is there some way to find a private method and make it accessible, somewhat like the way JSS can make a private field accessible? Thanks! _______________________________________________ Armedbear-devel mailing list Armedbear-devel@common-lisp.net http://mailman.common-lisp.net/cgi-bin/mailman/listinfo/armedbear-devel
On Tue, Nov 4, 2014 at 2:37 PM, Robert Goldman <rpgoldman@sift.net> wrote:
Is there some way to find a private method and make it accessible, somewhat like the way JSS can make a private field accessible?
If I understand your request correctly (I'm not sure I do, because I don't know what JSS is), here's an example how to do it: https://github.com/cffi/cffi/blob/v0.14.0/src/cffi-abcl.lisp#L142 HTH, -- Luís Oliveira http://kerno.org/~luis/ _______________________________________________ Armedbear-devel mailing list Armedbear-devel@common-lisp.net http://mailman.common-lisp.net/cgi-bin/mailman/listinfo/armedbear-devel
Luís Oliveira wrote:
On Tue, Nov 4, 2014 at 2:37 PM, Robert Goldman <rpgoldman@sift.net> wrote:
Is there some way to find a private method and make it accessible, somewhat like the way JSS can make a private field accessible?
If I understand your request correctly (I'm not sure I do, because I don't know what JSS is), here's an example how to do it: https://github.com/cffi/cffi/blob/v0.14.0/src/cffi-abcl.lisp#L142
HTH,
Thanks, Luís, that was exactly what I needed! JSS is an extension to the JFFI in ABCL. It provides a get-java-field that does a similar bit of magic to allow access to private and protected fields. I'll hack something like PRIVATE-JMETHOD into JSS for ABCL. Best, r _______________________________________________ Armedbear-devel mailing list Armedbear-devel@common-lisp.net http://mailman.common-lisp.net/cgi-bin/mailman/listinfo/armedbear-devel
participants (2)
-
Luís Oliveira
-
Robert Goldman