如何使用BCEL调用方法 [英] How to invoke a method using BCEL

查看:122
本文介绍了如何使用BCEL调用方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以帮我解决这个问题吗?

我需要使用BCEL调用一个方法,就像我们在Java中使用Reflection调用一个方法一样.如果给出了任何代码,那将非常有帮助.


在此先感谢

Hi can anyone help me in this problem

I need to invoke a method using BCEL.Just like we invoke a method using Reflection in Java.If any piece of code is given then it would be really helpful.


thanks in advance

推荐答案

Apache的手册页上"的BCEL项目 [ ^ ]令人难忘引述您应谨记的心:

如果想了解使用BCEL如何生成某些东西,可以执行以下操作:用Java编写具有所需功能的程序,然后像往常一样编译它.然后使用BCELifier [

如果您已阅读该文档,则也会找到它.我怀疑尽管我们不能出于任何理由期望任何人都能阅读如此小的文件.

问候,

-MRB
On the manual page of Apache''s BCEL project[^] there is memorable quote you should take to heart:

"If you want to learn how certain things are generated using BCEL you can do the following: Write your program with the needed features in Java and compile it as usual. Then use BCELifier[^] to create a class that creates that very input class using BCEL.

(Think about this sentence for a while, or just try it ...)
"


If you had read that documentation you''d have found it too. I suspect though that we can not with any reason expect anybody to read such a small document in it''s entirety.

Regards,

-MRB


这篇关于如何使用BCEL调用方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆