Uses 679K of libraries. Click here for Pure Java version (9620L/53K).
1 | svoid printClassByteCode(O o) { |
2 | if (o == null) ret; |
3 | JavaClass clz = classToBCEL(o); |
4 | if (clz == null) |
5 | ret with print("No class data found for " + _getClass(o)); |
6 | |
7 | print("PRINTING BYTE CODE FOR: " |
8 | + assertEquals("Disassembled class name", |
9 | className(o), clz.getClassName())); |
10 | print(); |
11 | print(tabToSingleSpace(str(clz))); |
12 | print(); |
13 | for (org.apache.bcel.classfile.Method method : clz.getMethods()) { |
14 | printWithNLBeforeAndAfter(method); |
15 | printWithIndent(tabToSingleSpace(str(method.getCode()))); |
16 | } |
17 | print(); |
18 | } |
download show line numbers debug dex old transpilations
Travelled to 5 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030295 |
Snippet name: | printClassByteCode - prints class info and code for all methods |
Eternal ID of this version: | #1030295/10 |
Text MD5: | 8558bfd9b4d5bbf6ff335e65ee33359c |
Transpilation MD5: | 08b4fab87997d52706391c1c085ecd6b |
Author: | stefan |
Category: | javax / byte code |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-08-12 07:12:30 |
Source code size: | 562 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 232 / 369 |
Version history: | 9 change(s) |
Referenced in: | [show references] |