}
if (longestMatch > 0) {
if (aliasName.length() > longestMatch) {
aliasIdentifier = aliasName.substring(longestMatch + 1);
}
qualifiedIdentifiers.add(new FQIdentifier(fqPrefix, aliasIdentifier, aliasIdentifier));
return qualifiedIdentifiers;
}
for (FQIdentifier identifier : getAliasToIdentifier()) {
if (aliasName.startsWith(identifier.getAlias())) {
String attribute = aliasName.substring(identifier.getAlias().length());
FQIdentifier id = new FQIdentifier(identifier.getModule(), identifier.getRealName() + attribute,
identifier.getAlias() + attribute);
qualifiedIdentifiers.add(id);
return qualifiedIdentifiers;
}
}
for (String moduleAlias : getRegularImportedModules().keySet()) {
qualifiedIdentifiers.add(new FQIdentifier(getRegularImportedModules().get(moduleAlias), aliasName,
aliasName));
}
return qualifiedIdentifiers;
}