JsName name = kv.getKey();
int size = kv.getValue();
// find method
JMethod method = jjsmap.nameToMethod(name);
if (method != null) {
codeGraph.methodDescriptorFrom(method).addFragment(new Fragment(i, size));
continue;
}
// find field
JField field = jjsmap.nameToField(name);
if ((field != null) && (field.getEnclosingType() != null)) {
codeGraph.classDescriptorFrom(field.getEnclosingType()).fieldFrom(field)
.addFragment(new Fragment(i, size));
continue;
}
// find class
JClassType type = jjsmap.nameToType(name);
if (type != null) {
codeGraph.classDescriptorFrom(type).addFragment(new Fragment(i, size));
continue;
}
// otherwise is a string or variable
this.otherSizes[i] += size;
}