bcel
Dynamically editing/creating classes in Java Android
I am looking for a way to dynamically define classes and instantiate them in Android, at runtime.From my understanding, this is already done in Android, I just need some help figuring it out.[详细]
2023-04-06 00:53 分类:问答How to specify ClassParser constructor parameter?
I\'m trying to use ClassParser to get method parameter names, ClassParser constructor takes class name as parameter for example:[详细]
2023-03-31 14:10 分类:问答Could I add the comments to my java class with the BCEL?
1.Could I add the comments to my existing java class with the BCEL? 2.Could I add the comments to my newly manually generated java class with t开发者_JAVA技巧he BCEL?BCEL manipulates byte code.Byte co[详细]
2023-03-23 05:18 分类:问答java trace of all runtime variable access
I need to log all run-time access to any variable or object My current direction is to markup the classfile with modified 开发者_高级运维bytecode[详细]
2023-03-16 21:04 分类:问答Can we push a Custom Type Object on Stack Operand in BCEL?
In BCEL we can push primitive types on Operand Stack. BUT now I want to know if it is possible to push a Custom Type Object on Stack in BCEL?[详细]
2023-03-11 03:29 分类:问答Invoking Method using BCEL
is there any expert in this community who have worked with BCEL and can guide me about invo开发者_如何转开发cation of method using BCEL just like we use to do with java reflection.[详细]
2023-03-05 05:25 分类:问答Create simple POJO classes (bytecode) at runtime (dynamically)
I\'ve the following scenario.. I am writing some tool that run user-entered query against the database and return the result..[详细]
2023-02-15 00:47 分类:问答What bytecode library when controlling line numbers?
I need to generate new classes (via generation of java byte code) from existing classes. I will analyse the body (expressions) of the methods of a clas开发者_运维问答s. The expressions will determine[详细]
2023-02-11 16:35 分类:问答How is the Java Service Provide API supposed to work?
It seems like everybody has had an unpleasant brush with the Java Service Provider, that thing you can do with a file named like META-INF/services/com.example.Interface, but that nobody uses except fo[详细]
2023-01-31 20:04 分类:问答Renaming Things
How do I rename things using BCEL? So far what I do is go through each method in a class and create a new NameAndType constant in the constant pool, then I replace the old NameAndType constant with th[详细]
2023-01-30 07:43 分类:问答