MCPcopy Create free account
hub / github.com/GraxCode/zelixkiller / getNode

Method getNode

src/me/lpk/util/ASMUtils.java:35–49  ·  view source on GitHub ↗

Gets a ClassNode based on given bytes @param bytez @return

(final byte[] bytez)

Source from the content-addressed store, hash-verified

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

Callers 5

cloneMethod · 0.95
preTransformMethod · 0.95
createProxyMethod · 0.95
readJarMethod · 0.95
areSimiliarMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected