if (lastTaskTag != null)
{
IParseDictionary parseDictionary = lastTaskTag.getParseDictionary();
Tag parsePhase = JournalUtil.getParsePhase(journal);
if (parsePhase != null)
{
List<Tag> parseTags = parsePhase.getNamedChildren(TAG_PARSE);
for (Tag parseTag : parseTags)
{
String currentMethod = null;
String holder = null;
List<Tag> allChildren = parseTag.getChildren();
for (Tag childTag : allChildren)
{
String tagName = childTag.getName();
Map<String, String> attrs = childTag.getAttrs();
switch (tagName)
{
case TAG_METHOD:
{
currentMethod = attrs.get(ATTR_NAME);
holder = attrs.get(ATTR_HOLDER);
}
break;
// changes member context
case TAG_CALL:
{
String methodID = attrs.get(ATTR_METHOD);
Tag methodTag = parseDictionary.getMethod(methodID);
currentMethod = methodTag.getAttribute(ATTR_NAME);
holder = methodTag.getAttribute(ATTR_HOLDER);
}
break;
case TAG_INTRINSIC:
{
if (holder != null && currentMethod != null)
{
Tag klassTag = parseDictionary.getKlass(holder);
String intrinsic = childTag.getAttribute(ATTR_ID);
if (klassTag != null)
{
String fqName = klassTag.getAttribute(ATTR_NAME).replace(C_SLASH, C_DOT) + C_DOT
+ currentMethod;
result.put(fqName, intrinsic);
}
}