Method method = mafNode.getMethod();
Range afRange = method.getOffsetMap().get(Method.OffsetTag.ACCESS_FLAGS);
return afRange.offsetBy(parentRange.getOffset());
} else if (node instanceof MethodNameNode) {
Range parentRange = getRange((StructureNode)node.getParent());
MethodNameNode mafNode = (MethodNameNode) node;
Method method = mafNode.getMethod();
Range afRange = method.getOffsetMap().get(Method.OffsetTag.METHOD_NAME);
return afRange.offsetBy(parentRange.getOffset());
} else if (node instanceof MethodDescriptorNode) {
Range parentRange = getRange((StructureNode)node.getParent());
MethodDescriptorNode mafNode = (MethodDescriptorNode) node;
Method method = mafNode.getMethod();
Range afRange = method.getOffsetMap().get(Method.OffsetTag.METHOD_DESCRIPTOR);
return afRange.offsetBy(parentRange.getOffset());
} else if (node instanceof AttributeNode) {
AttributeNode aNode = (AttributeNode) node;
AttributesNode an = (AttributesNode) aNode.getParent();