Package org.apache.flex.compiler.internal.units

Examples of org.apache.flex.compiler.internal.units.EmbedCompilationUnit


            if (splashScreenImageValue == null)
                return new FlexSplashScreenImage(null, null);
           
            String className = null;      // name of class to get reference for
           
            EmbedCompilationUnit splashScreenImageEmbedUnit = null;
            String functionName = getAtFunctionName(splashScreenImageValue);
            IResolvedQualifiersReference splashScreenImageReference = null;
            if ("Embed".equals(functionName))
            {
                splashScreenImageEmbedUnit = getEmbeddedCompilationUnit(ATTRIBUTE_SPLASH_SCREEN_IMAGE);
                className = splashScreenImageEmbedUnit.getName();
                assert className != null;
            }
            else
            {
                // class name
View Full Code Here


            {
                // TODO: implement me
            }
            else if ("Embed".equals(functionCall.name))
            {
                final EmbedCompilationUnit embedCompilationUnit = session.resolvedEmbedProperties.get(functionCall);
                if (embedCompilationUnit == null)
                {
                    final ICompilerProblem e = new CSSCodeGenProblem(
                            new IllegalStateException("Unable to find compilation unit for " + functionCall));
                    problems.add(e);
                }
                else
                {
                    final String qName = embedCompilationUnit.getName();
                    final IResolvedQualifiersReference reference = ReferenceFactory.packageQualifiedReference(project.getWorkspace(), qName);
                    valueInstructions.addInstruction(ABCConstants.OP_getlex, reference.getMName());
                }
            }
            else
View Full Code Here

                    }
                    else
                    {
                        try
                        {
                            final EmbedCompilationUnit embedCompilationUnit =
                                    EmbedCompilationUnitFactory.getCompilationUnit(
                                            (ASProject)project,
                                            embedTag.getSourcePath(),
                                            functionCall,
                                            embedTag.getAllAttributes(),
View Full Code Here

        try
        {
            // generated embed compilation unit has not been resolved yet,
            // so resolve it and set the reference.
            List<ICompilerProblem> problems = new LinkedList<ICompilerProblem>();
            EmbedCompilationUnit cu = resolveCompilationUnit(project, problems);
            if (cu == null)
                return null;
            setClassReference((FlexProject)project, cu.getName());
        }
        catch (InterruptedException e)
        {
            throw new CodegenInterruptedException(e);
        }
View Full Code Here

    //

    public String getName(ICompilerProject project, Collection<ICompilerProblem> problems)
        throws InterruptedException
    {
        EmbedCompilationUnit cu = resolveCompilationUnit(project, problems);
        // If there was an error resolving the compilation unit, just return an empty string.
        if (cu == null)
            return new String();

        return cu.getName();
    }
View Full Code Here

TOP

Related Classes of org.apache.flex.compiler.internal.units.EmbedCompilationUnit

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.