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

Method getClassName

src/me/lpk/mapping/remap/impl/ModeSimple.java:12–20  ·  view source on GitHub ↗
(MappedClass cn)

Source from the content-addressed store, hash-verified

10 private int classIndex, methodIndex, fieldIndex;
11
12 @Override
13 public String getClassName(MappedClass cn) {
14 for (MethodNode mn : cn.getNode().methods) {
15 if (mn.name.equals("main") && mn.desc.equals("([Ljava/lang/String;)V")) {
16 return cn.getOriginalName();
17 }
18 }
19 return "Class" + classIndex++;
20 }
21
22 @Override
23 public String getMethodName(MappedMember mn) {

Callers

nothing calls this directly

Calls 3

getOriginalNameMethod · 0.80
getNodeMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected