Examples of IABCBytesRequestResult


Examples of org.apache.flex.compiler.units.requests.IABCBytesRequestResult

    protected ISWFTagsRequestResult handleSWFTagsRequest() throws InterruptedException
    {
        startProfile(Operation.GET_SWF_TAGS);       
        try
        {
            final IABCBytesRequestResult abcResult = getABCBytesRequest().get();

            return new SWFTagsRequestResult(abcResult.getABCBytes(), qname);
        }
        finally
        {
            stopProfile(Operation.GET_SWF_TAGS);
        }
View Full Code Here

Examples of org.apache.flex.compiler.units.requests.IABCBytesRequestResult

    @Override
    protected ISWFTagsRequestResult handleSWFTagsRequest() throws InterruptedException
    {
        // Fulfill other requests before profiling this request.
        final IABCBytesRequestResult abc = getABCBytesRequest().get();

        startProfile(Operation.GET_SWF_TAGS);
        try
        {
            String tagName = getDefinitionPromises().get(0).getQualifiedName();
            return new SWFTagsRequestResult(abc.getABCBytes(), tagName, abc.getEmbeds());
        }
        finally
        {
            stopProfile(Operation.GET_SWF_TAGS);
        }
View Full Code Here

Examples of org.apache.flex.compiler.units.requests.IABCBytesRequestResult

            List<IASScope> scopeList = null;
            List<ICompilerProblem> problems = new LinkedList<ICompilerProblem>();
            IFileSpecification rootSource = getRootFileSpecification();
            try
            {
                IABCBytesRequestResult abcResult = getABCBytesRequest().get();

                startProfile(Operation.GET_FILESCOPE);

                String path = rootSource.getPath();
                ABCScopeBuilder abcScopeBuilder = new ABCScopeBuilder(
                        getProject().getWorkspace(),
                        abcResult.getABCBytes(),
                        path,
                        ASFileScopeProvider.getInstance());
                scopeList = abcScopeBuilder.build();
                if (scopeList.isEmpty())
                {
View Full Code Here

Examples of org.apache.flex.compiler.units.requests.IABCBytesRequestResult

    }

    @Override
    protected ISWFTagsRequestResult handleSWFTagsRequest() throws InterruptedException
    {
        final IABCBytesRequestResult abc = getABCBytesRequest().get();

        startProfile(Operation.GET_SWF_TAGS);

        try
        {
            String tagName;
            String qname = getName();
            if (qname == null || "".equals(qname))
                tagName = DEFAULT_DO_ABC_TAG_NAME;
            else
                tagName = qname.replace('.', '/');

            Collection<EmbedData> embeds = abc.getEmbeds();
            if (embeds.size() == 0)
                embeds = Collections.singleton(embedData);
            return new SWFTagsRequestResult(abc.getABCBytes(), tagName, embeds);
        }
        finally
        {
            stopProfile(Operation.GET_SWF_TAGS);
        }
View Full Code Here

Examples of org.apache.flex.compiler.units.requests.IABCBytesRequestResult

        final CompilerProject project = getProject();
       
        startProfile(Operation.GET_ABC_BYTES);
        try
        {
            IABCBytesRequestResult result = CodeGeneratorManager.getCodeGenerator().generate(
                project.getWorkspace().getExecutorService(),
                project.getUseParallelCodeGeneration(),
                getFilenameNoPath(),
                fileNode,
                getProject(),
View Full Code Here

Examples of org.apache.flex.compiler.units.requests.IABCBytesRequestResult

    @Override
    protected ISWFTagsRequestResult handleSWFTagsRequest() throws InterruptedException
    {
        // Fulfill other requests before profiling this request.
        final IABCBytesRequestResult abc = getABCBytesRequest().get();

        startProfile(Operation.GET_SWF_TAGS);

        try
        {
            return new SWFTagsRequestResult(abc.getABCBytes(), qname, abc.getEmbeds());
        }
        finally
        {
            stopProfile(Operation.GET_SWF_TAGS);
        }
View Full Code Here

Examples of org.apache.flex.compiler.units.requests.IABCBytesRequestResult

       
        if( fatalProblems.isEmpty() )
        {
            for (ICompilationUnit cu : compilationUnits)
            {
                final IABCBytesRequestResult codegenResult = cu.getABCBytesRequest().get();
                abcBytes = codegenResult.getABCBytes();
                abcList.add(abcBytes);
                problemQuery.addAll(codegenResult.getProblems());
            }
        }
        else
        {
            problemQuery.addAll(fatalProblems);
View Full Code Here

Examples of org.apache.flex.compiler.units.requests.IABCBytesRequestResult

        return result;
    }

    private IABCBytesRequestResult processABCBytesRequest() throws InterruptedException
    {
        IABCBytesRequestResult result = handleABCBytesRequest();
        operationComplete(ICompilationUnit.Operation.GET_ABC_BYTES);
        removeAST();

        return result;
    }
View Full Code Here

Examples of org.apache.flex.compiler.units.requests.IABCBytesRequestResult

     * Get a {@link DoABCTag} that contains the generated ABC byte code.
     */
    @Override
    protected ISWFTagsRequestResult handleSWFTagsRequest() throws InterruptedException
    {
        final IABCBytesRequestResult abcResult = getABCBytesRequest().get();

        return new SWFTagsRequestResult(abcResult.getABCBytes(), swfTagName);
    }
View Full Code Here

Examples of org.apache.flex.compiler.units.requests.IABCBytesRequestResult

    @Override
    protected IABCBytesRequestResult handleABCBytesRequest() throws InterruptedException
    {
        startProfile(Operation.GET_ABC_BYTES);
        IABCBytesRequestResult result = new ABCBytesRequestResult();
        stopProfile(Operation.GET_ABC_BYTES);
        return result;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.