*
* @param node The node to be visited.
*/
public void endVisit(QualifiedName node) {
if (_state.getCurrentClass() != null) {
Name qualifier = node.getQualifier();
SimpleName name = node.getName();
Type owner;
if (qualifier instanceof SimpleName) {
TypeAndOwner ownerTypeAndOwner = _resolveName(
((SimpleName) qualifier).getIdentifier(), null);
if (ownerTypeAndOwner == null) {
owner = null;
} else {
Type.setOwner(qualifier, ownerTypeAndOwner._getOwner());
owner = ownerTypeAndOwner._getType();
Type.setType(qualifier, owner);
}
} else {
owner = Type.getType(qualifier);
}
String resolveName;
if (owner == null) {
resolveName = qualifier.toString() + "." + name.getIdentifier();
} else {
resolveName = name.getIdentifier();
}
TypeAndOwner nodeTypeAndOwner = _resolveName(resolveName, owner);