Package org.apache.flex.compiler.common

Examples of org.apache.flex.compiler.common.IImportTarget


    {
        String qualifiedName = null;
       
        if (getVariableClassification() == VariableClassification.PACKAGE_MEMBER)
        {
            IImportTarget importTarget = ASImportTarget.buildImportFromPackageName(getWorkspace(), getPackageName());
            qualifiedName = importTarget.getQualifiedName(getName());
        }
       
        if (qualifiedName == null)
            qualifiedName = getName();
       
View Full Code Here


        String[] imports = getImports();
        if (imports != null)
        {
            for (String importStr : imports)
            {
                IImportTarget importTarget = ASImportTarget.get(workspace, importStr);
                // Only wildcard imports contribute to the namespace set
                // e.g. a.b.*, but not a.b.Foo
                if (importTarget.isWildcard())
                    namespaceSet.add(importTarget.getNamespace());
            }
        }
    }
View Full Code Here

    }

    @Override
    public String getQualifiedName()
    {
        IImportTarget importTarget = ASImportTarget.buildImportFromPackageName(getWorkspace(), getPackageName());
        String qualifiedName = importTarget.getQualifiedName(getName());
        if (qualifiedName == null)
            return getShortName();
        return qualifiedName;
    }
View Full Code Here

    public String getQualifiedName()
    {
        String qualifiedName = null;
        if (isPackageLevelFunction())
        {
            IImportTarget importTarget = ASImportTarget.buildImportFromPackageName(getWorkspace(), getPackageName());
            qualifiedName = importTarget.getQualifiedName(getName());
        }
        if (qualifiedName == null)
            qualifiedName = getName();
        return qualifiedName;
    }
View Full Code Here

    @Override
    public String getQualifiedName()
    {
        if (qualifiedName == null)
        {
            IImportTarget importTarget = ASImportTarget.buildImportFromPackageName(getWorkspace(), getPackageName());
            String qname = importTarget.getQualifiedName(getName());
            // #124877: core.as has a bunch of different packages in it, which is illegal.
            // just handle it quietly here.
            if (qname == null)
                qualifiedName = getShortName();
            qualifiedName = qname;
View Full Code Here

    //--------------------------------------------------------------------------

    @Override
    public void emitImport(IImportNode node)
    {
        IImportTarget target = node.getImportTarget();
        writeToken(ASEmitterTokens.IMPORT);
        write(target.toString());
    }
View Full Code Here

    {
        String qualifiedName = null;
       
        if (getNamespaceClassification() == NamespaceClassification.PACKAGE_MEMBER)
        {
            IImportTarget importTarget = ASImportTarget.buildImportFromPackageName(getWorkspace(), getPackageName());
            qualifiedName = importTarget.getQualifiedName(getName());
        }
       
        if (qualifiedName == null)
            qualifiedName = getName();
       
View Full Code Here

    //--------------------------------------------------------------------------

    @Override
    public void emitImport(IImportNode node)
    {
        IImportTarget target = node.getImportTarget();
        writeToken(ASEmitterTokens.IMPORT);
        write(target.toString());
    }
View Full Code Here

TOP

Related Classes of org.apache.flex.compiler.common.IImportTarget

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.