MethodCountData(Element e) { class_name = null; method_name = computeMethodName(e); start_line = IvyXml.getAttrInt(e, "START"); end_line = IvyXml.getAttrInt(e, "END"); called_count = IvyXml.getAttrInt(e, "COUNT"); top_count = IvyXml.getAttrInt(e, "TOP"); calls_counts = new HashMap<String, Integer>(); block_data = new HashMap<Integer, BlockCountData>(); for (Element be : IvyXml.children(e, "CALLS")) { int ct = IvyXml.getAttrInt(be, "CALLCOUNT"); String nm = computeMethodName(be); calls_counts.put(nm, ct); } for (Element be : IvyXml.children(e, "BLOCK")) { BlockCountData bcd = new BlockCountData(be); block_data.put(bcd.getBlockIndex(), bcd); } }