Gets a ClassNode based on given bytes @param bytez @return
(final byte[] bytez)
| 33 | * @return |
| 34 | */ |
| 35 | public static ClassNode getNode(final byte[] bytez) { |
| 36 | ClassReader cr = new ClassReader(bytez); |
| 37 | ClassNode cn = new ClassNode(); |
| 38 | try { |
| 39 | cr.accept(cn, ClassReader.EXPAND_FRAMES); |
| 40 | } catch (Exception e) { |
| 41 | try { |
| 42 | cr.accept(cn, ClassReader.SKIP_FRAMES | ClassReader.SKIP_DEBUG); |
| 43 | } catch (Exception e2) { |
| 44 | // e2.printStackTrace(); |
| 45 | } |
| 46 | } |
| 47 | cr = null; |
| 48 | return cn; |
| 49 | } |
| 50 | |
| 51 | /** |
| 52 | * Generates a getter method for the specified field |
no outgoing calls
no test coverage detected