Examples of DoABCTag


Examples of org.apache.flex.swf.tags.DoABCTag

                        false);
            cssCodeGenResult.visitClassTraits(classGenerator.getCTraitsVisitor());

            classGenerator.finishScript();

            DoABCTag tag = new DoABCTag();
            tag.setABCData(emitter.emit());
            tag.setName("defaults.css and theme CSS data");
            frame.addTag(tag);

            return true;
        }
View Full Code Here

Examples of org.apache.flex.swf.tags.DoABCTag

                    new Name(IASLanguageConstants.Array), bundlesInstructionList);      
           
            //Generate script      
            classGen.finishScript();
           
            DoABCTag doABC = new DoABCTag();
            try
            {
                doABC.setABCData(emitter.emit());
            }
            catch (Exception e)
            {
                return;
            }
           
            doABC.setName(className);
            frame.addTag(doABC);
        }
View Full Code Here

Examples of org.apache.flex.swf.tags.DoABCTag

                initMethodTraitVisitor.visitStart();
                initMethodTraitVisitor.visitEnd();
            }
            classGen.finishScript();
           
            DoABCTag doABC = new DoABCTag();
            try
            {
                doABC.setABCData(emitter.emit());
            }
            catch (Exception e)
            {
                return false;
            }
           
            doABC.setName(getFlexInitClassName());
            frame.addTag(doABC);
           
            return true;
        }
View Full Code Here

Examples of org.apache.flex.swf.tags.DoABCTag

                    problemCollection,
                    false);
           
            classGen.finishScript();

            DoABCTag doABC = new DoABCTag();
            try
            {
                doABC.setABCData(emitter.emit());
            }
            catch (Exception e)
            {
                return false;
            }

            // We pass "false" for the "allowExternals" parameter of
            // addDefinitionAndDependenciesToFrame() because we know we are
            // creating the first frame of a two frame swf.
            // The first frame is the loader frame and the second frame is the
            // application frame. The loader frame shows the preloader to entertain
            // the user while it loads RSLs and waits for the second frame to load.
            // The first frame does not allow classes to be externalized because it
            // needs to link in some framework classes to load RSLs and show the
            // preloader. But we need to make sure we don't link in native code
            // from playerglobal.swc so there is special code in
            // isLinkageAlwaysExternal() to handle that case.
           
           

            doABC.setName(generatedSystemManagerClassNameString);
            frame.addTag(doABC);

            return true;
        }
View Full Code Here

Examples of org.apache.flex.swf.tags.DoABCTag

    protected DoABCTag readDoABC() throws IOException
    {
        final long flag = bitStream.readUI32();
        final String name = bitStream.readString();
        final byte[] abcData = bitStream.readToBoundary();
        return new DoABCTag(flag, name, abcData);
    }
View Full Code Here

Examples of org.apache.flex.swf.tags.DoABCTag

    public boolean addToFrame(SWFFrame f)
    {
        if (abcData == null)
            return false;

        final DoABCTag doABC = new DoABCTag();
        doABC.setABCData(abcData);
        doABC.setName(tagName);

        for (ITag tag : additionalTags)
        {
            f.addTag(tag);
        }
View Full Code Here

Examples of org.apache.flex.swf.tags.DoABCTag

        for (final ITag tag : tags)
        {
            if (tag instanceof DoABCTag)
            {
                final DoABCTag abcTag = (DoABCTag)tag;
                if (abcTag.getName().equals(abcName))
                {
                    return abcTag;
                }
            }
        }
View Full Code Here

Examples of org.apache.flex.swf.tags.DoABCTag

        final FileScopeCacheKey fileScopeCacheKey = (FileScopeCacheKey)key;
        final CacheStoreKeyBase swfCacheKey = SWFCache.createKey(fileScopeCacheKey.swc, fileScopeCacheKey.swfPath);
        final ITagContainer tags = swcManager.getSWFCache().get(swfCacheKey);

        final DoABCTag abcTag = SWFCache.findDoABCTagByName(tags, fileScopeCacheKey.scriptName);
        if (abcTag != null)
        {
            try
            {
                final ABCScopeBuilder abcScopeBuilder = new ABCScopeBuilder(
                        swcManager.getWorkspace(),
                        abcTag.getABCData(),
                        fileScopeCacheKey.swc.getSWCFile().getCanonicalPath(),
                        SWCFileScopeProvider.getInstance());
                return abcScopeBuilder.build();
            }
            catch (IOException e)
View Full Code Here

Examples of org.apache.flex.swf.tags.DoABCTag

        startProfile(Operation.GET_SWF_TAGS);
       
        final FXGSymbolClass symbolClass = semanticResults.symbolClass;
        final Map<ITag, ITag> extraTags = semanticResults.extraTags;
        final Collection<ICompilerProblem> problems = new ArrayList<ICompilerProblem>();      
        final DoABCTag abcTag = new DoABCTag();
       
        try
        {  
            abcTag.setName(qname);
            abcTag.setABCData(byteResult.getABCBytes());
        }
        catch (Exception e)
        {
            ICompilerProblem problem = new InternalCompilerProblem2(getRootFileSpecification().getPath(), e, SUB_SYSTEM);
            problems.add(problem);
        }
        finally
        {
            stopProfile(Operation.GET_SWF_TAGS);
        }
       
        return new ISWFTagsRequestResult()
        {
            @Override
            public boolean addToFrame(SWFFrame frame)
            {  
                ICharacterTag symbolTag = symbolClass.getSymbol();
               
                List<ITag> symbolTags = TagSorter.sortFullGraph(Collections.singletonList((ITag)symbolTag));
               
                for (ITag tag : symbolTags)
                {
                    frame.addTag(tag);
                    if (extraTags.containsKey(tag))
                    {
                        frame.addTag(extraTags.get(tag));
                    }
                }
               
                if (symbolClass.getAdditionalSymbolClasses() != null )
                {
                    for (FXGSymbolClass symbol : symbolClass.getAdditionalSymbolClasses())
                    {
                        frame.defineSymbol(symbol.getSymbol(), symbol.getQualifiedClassName());
                    }
                }

                frame.addTag(abcTag);
                frame.defineSymbol(symbolClass.getSymbol(), qname);
               
                return true;
            }
           
            @Override
            public ICompilerProblem[] getProblems()
            {
                return problems.toArray(new ICompilerProblem[0]);
            }

            @Override
            public String getDoABCTagName()
            {
                return abcTag.getName();
            }
           
        };
    }
View Full Code Here

Examples of org.apache.flex.swf.tags.DoABCTag

    {
        for (DoABCTag inputABC : inputABCs)
        {
            byte[] linkedBytes =
                ABCLinker.linkABC(Collections.singleton(inputABC.getABCData()), ABCConstants.VERSION_ABC_MAJOR_FP10, ABCConstants.VERSION_ABC_MINOR_FP10, linkSettings);
            DoABCTag linkedTag = new DoABCTag(1, inputABC.getName(), linkedBytes);
            targetFrame.addTag(linkedTag);
        }
    }
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.