Examples of DoABCTag


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

                        problemCollection);           
            }
           
            classGen.finishScript();

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

            doABC.setName(generatedRootClassNameString);
            frame.addTag(doABC);
            return true;
        }
View Full Code Here

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

        final CacheStoreKeyBase key = SWFCache.createKey(swc, library.getPath());
        final ITagContainer tags = getProject().getWorkspace().getSWCManager().getSWFCache().get(key);

        startProfile(Operation.GET_ABC_BYTES);

        final DoABCTag doABC = SWFCache.findDoABCTagByName(tags, script.getName());
        if (doABC == null)
        {
            problems.add(new InternalCompilerProblem(
                    new RuntimeException("can't find ABC bytes for : " + script.getName())));
        }
        else
        {
            abcBytes = doABC.getABCData();
        }

        ABCBytesRequestResult result = new ABCBytesRequestResult(abcBytes);
        stopProfile(Operation.GET_ABC_BYTES);
View Full Code Here

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

        final ArrayList<ITag> linkingTags = new ArrayList<ITag>();

        // link main definition
        final CacheStoreKeyBase key = SWFCache.createKey(swc, library.getPath());
        final ITagContainer tags = getProject().getWorkspace().getSWCManager().getSWFCache().get(key);
        final DoABCTag doABC = SWFCache.findDoABCTagByName(tags, script.getName());
        if (doABC == null)
            throw new NullPointerException("can not find DoABC tag: " + script.getName());

        startProfile(Operation.GET_SWF_TAGS);
View Full Code Here

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

            {
                return arg0.getABCData();
            }});
        byte[] linkedBytes =
            ABCLinker.linkABC(inputABCsBytes, ABCConstants.VERSION_ABC_MAJOR_FP10, ABCConstants.VERSION_ABC_MINOR_FP10, linkSettings);
        DoABCTag linkedTag = new DoABCTag(1, "merged", linkedBytes);
        targetFrame.addTag(linkedTag);
    }
View Full Code Here

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

            LinkedList<DoABCTag> accumulatedABC = new LinkedList<DoABCTag>();
            for (ITag unlinkedTag : unlinkedFrame)
            {
                if (unlinkedTag instanceof DoABCTag)
                {
                    final DoABCTag abcTag = (DoABCTag)unlinkedTag;
                    accumulatedABC.add(abcTag);                       
                }
                else
                {
                    if (!accumulatedABC.isEmpty())
View Full Code Here

Examples of tv.porst.swfretools.parser.tags.DoABCTag

      final RawABCTag ctag = (RawABCTag) tag;

      addNode("ABCData", ctag.getAbcData());
    }
    else if (tag instanceof DoABCTag) {
      final DoABCTag ctag = (DoABCTag) tag;

      addNode("Name", ctag.getName());
      addNode("Flags", ctag.getFlags());
      addNode("ABCData", ctag.getAbcData());
    }
  }
View Full Code Here

Examples of tv.porst.swfretools.parser.tags.DoABCTag

    final List<AS3Code> codeFragments = new ArrayList<AS3Code>();

    for (final Tag tag : file.getTags()) {

      if (tag instanceof DoABCTag) {
        final DoABCTag dtag = (DoABCTag) tag;

        for (final MethodBody methodBody : dtag.getAbcData().getMethodBodies()) {
          codeFragments.add(methodBody.getCode());
        }
      }
      else if (tag instanceof RawABCTag) {
        final RawABCTag dtag = (RawABCTag) tag;

        for (final MethodBody methodBody : dtag.getAbcData().getMethodBodies()) {
          codeFragments.add(methodBody.getCode());
        }
      }
    }
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.