Uses 679K of libraries. Click here for Pure Java version (5044L/28K).
1 | !include once #1019934 // BCEL |
2 | |
3 | static L<InstructionHandle> bcel_methodToInstructions(JavaClass c, org.apache.bcel.classfile.Method method) {
|
4 | S className = c.getClassName(); |
5 | var cp = new ConstantPoolGen(c.getConstantPool()); |
6 | MethodGen mg = new MethodGen(method, className, cp); |
7 | InstructionList il = mg.getInstructionList(); |
8 | InstructionHandle[] ihs = il.getInstructionHandles(); |
9 | ret asList(ihs); |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1034719 |
| Snippet name: | bcel_methodToInstructions |
| Eternal ID of this version: | #1034719/3 |
| Text MD5: | 787b2226ca94e408e516c397ec6fc3af |
| Transpilation MD5: | 75ad1d04545b7a41ac14a463233d76c0 |
| Author: | stefan |
| Category: | javax / bcel |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-03-07 16:14:37 |
| Source code size: | 417 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 389 / 497 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |