Package org.python.pydev.refactoring.ast

Examples of org.python.pydev.refactoring.ast.FQIdentifier


                String aliasName = name.id;
                if (asName != null) {
                    aliasName = asName.id;
                }

                aliasToFQIdentifier.add(new FQIdentifier(prefix, realName, aliasName));

            }
        } else {
            // from <smthing> import *
            importedModules.put(prefix, prefix);
View Full Code Here


        }
        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;

    }
View Full Code Here

TOP

Related Classes of org.python.pydev.refactoring.ast.FQIdentifier

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.