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

Method getLabelMap

src/me/nov/zelixkiller/utils/MethodUtils.java:12–20  ·  view source on GitHub ↗
(InsnList list)

Source from the content-addressed store, hash-verified

10
11public class MethodUtils {
12 public static Map<LabelNode, LabelNode> getLabelMap(InsnList list) {
13 Map<LabelNode, LabelNode> map = new HashMap<>();
14 for (AbstractInsnNode ain : list.toArray()) {
15 if (ain instanceof LabelNode) {
16 map.put((LabelNode) ain, new LabelNode());
17 }
18 }
19 return map;
20 }
21
22 /**
23 * copy InsnList start included, end excluded

Callers 1

copyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected