| 66 | } |
| 67 | |
| 68 | public int[] get_ReflectClassId (JsonNode Edges, int edge_id) { |
| 69 | int[] result_list = new int[2]; |
| 70 | int classId; |
| 71 | if (Edges.get(edge_id-1).get("edge").textValue().equals("CALL") & |
| 72 | Edges.get(edge_id+1).get("edge").textValue().equals("CALL")) { |
| 73 | classId = Edges.get(edge_id).get("exit_id").intValue(); |
| 74 | result_list[0] = edge_id; |
| 75 | result_list[1] = classId; |
| 76 | } |
| 77 | else { |
| 78 | int a; |
| 79 | for (a=edge_id; a<Edges.size(); a++) { |
| 80 | if (Edges.get(a).get("edge").textValue().equals("CALL")) { |
| 81 | classId = Edges.get(a).get("entry_id").intValue(); |
| 82 | result_list[0] = a-1; |
| 83 | result_list[1] = classId; |
| 84 | break; |
| 85 | } |
| 86 | } |
| 87 | } |
| 88 | return result_list; |
| 89 | } |
| 90 | |
| 91 | public <classname> Object object_init (String classname) throws Exception { |
| 92 | |