MCPcopy Create free account
hub / github.com/GCMiner/GCMiner / get_ClassName

Method get_ClassName

src/main/java/ChainValidatiton/Test.java:42–52  ·  view source on GitHub ↗
(JsonNode results, int chain_id, int node_id)

Source from the content-addressed store, hash-verified

40 return laststr.toString();
41 }
42 public static String get_ClassName(JsonNode results, int chain_id, int node_id) {
43 JsonNode ClassName = results.get(chain_id).get("ClassName");
44 String classname = null;
45 for (int i=0; i<ClassName.size(); i++) {
46 if (ClassName.get(i).get("id").intValue() == node_id) {
47 classname = ClassName.get(i).get("value").textValue();
48 break;
49 }
50 }
51 return classname;
52 }
53
54 public static String get_MethodName(JsonNode results, int chain_id, int node_id) {
55 JsonNode MethodName = results.get(chain_id).get("MethodName");

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected