Package org.apache.flex.compiler.internal.embedding.transcoders

Examples of org.apache.flex.compiler.internal.embedding.transcoders.TranscoderBase


        this.additionalTags = new LinkedList<ITag>();
        this.assetTags = new LinkedHashMap<String, ICharacterTag>();

        for (EmbedData embedData : embeddedAssets)
        {
            TranscoderBase transcoder = embedData.getTranscoder();
            Map<String, ICharacterTag> tags = transcoder.getTags(additionalTags, this.problems);

            if (tags != null)
                assetTags.putAll(tags);
        }
    }
View Full Code Here


    {
        startProfile(Operation.GET_SYNTAX_TREE);
        try
        {
            getProject().clearScopeCacheForCompilationUnit(this);
            TranscoderBase transcoder = embedData.getTranscoder();
            if (transcoder instanceof SkinTranscoder)
            {
                List<ICompilerProblem> noProblems = Collections.emptyList();
                return new SyntaxTreeRequestResult(getRootFileSpecification().getLastModified(), noProblems);
            }
            else
            {
                Collection<ICompilerProblem> problems = new LinkedList<ICompilerProblem>();
                FileNode fileNode = transcoder.buildAST(problems, getAbsoluteFilename());
                final ASFileScope fileScope = fileNode.getFileScope();
                addScopeToProjectScope(new ASFileScope[] { fileScope });
                markClassAsEmbed(fileScope);

                return new SyntaxTreeRequestResult(fileNode, fileNode.getIncludeHandler().getIncludedFiles(), getRootFileSpecification().getLastModified(), problems);
View Full Code Here

    }

    @Override
    protected IFileScopeRequestResult handleFileScopeRequest() throws InterruptedException
    {
        TranscoderBase transcoder = embedData.getTranscoder();
        // SkinTranscoder generates ABC directly rather than an AST, so handle differently
        // Eventually all transcoders should be updated to go directly to ABC
        if (transcoder instanceof SkinTranscoder)
        {
            List<IASScope> scopeList = null;
View Full Code Here

    }

    @Override
    protected IABCBytesRequestResult handleABCBytesRequest() throws InterruptedException
    {
        TranscoderBase transcoder = embedData.getTranscoder();
        // SkinTranscoder generates ABC directly rather than an AST, so handle differently
        // Eventually all transcoders should be updated to go directly to ABC
        if (transcoder instanceof SkinTranscoder)
        {
            startProfile(Operation.GET_ABC_BYTES);
            try
            {
                List<ICompilerProblem> problems = new LinkedList<ICompilerProblem>();
                byte[] bytes = transcoder.buildABC(getProject(), problems);
                ICompilerProblem[] problemsArray = problems.toArray(new ICompilerProblem[problems.size()]);
                return new ABCBytesRequestResult(bytes, problemsArray, Collections.singleton(embedData));
            }
            finally
            {
View Full Code Here

    private final void collectEmbeddedFonts(ICompilationUnit compilationUnit)
    {
        if (!(compilationUnit instanceof EmbedCompilationUnit))
            return;

        TranscoderBase transcoder = ((EmbedCompilationUnit)compilationUnit).getEmbedData().getTranscoder();
        if (!(transcoder instanceof MovieTranscoder))
            return;

        MovieTranscoder movieTranscoder = (MovieTranscoder)transcoder;
        FlexFontInfo flexFontInfo = movieTranscoder.getFlexFontInfo();
View Full Code Here

TOP

Related Classes of org.apache.flex.compiler.internal.embedding.transcoders.TranscoderBase

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.