Advertisement
Guest User

getNode method

a guest
Apr 26th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. public static ClassNode getNode(byte[] bytes) {
  2. ClassReader cr = new ClassReader(bytes);
  3. ClassNode cn = new ClassNode();
  4. try {
  5. cr.accept(cn, ClassReader.EXPAND_FRAMES);
  6. } catch (Exception e) {
  7. try {
  8. cr.accept(cn, ClassReader.SKIP_FRAMES | ClassReader.SKIP_DEBUG);
  9. } catch (Exception e2) {
  10. return null;
  11. }
  12. }
  13. return cn;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement