Package flex2.compiler.as3

Examples of flex2.compiler.as3.HostComponentExtension


    asc.addCompilerExtension(new EmbedExtension(transcoders, gendir, compilerConfig.showDeprecationWarnings()));
    asc.addCompilerExtension(new StyleExtension());
    // IMPORTANT!!!! The HostComponentExtension must run before the BindableExtension!!!!
    asc.addCompilerExtension(new HostComponentExtension(compilerConfig.reportMissingRequiredSkinPartsAsWarnings()));
    asc.addCompilerExtension(new BindableExtension(gendir, generateAbstractSyntaxTree, false));
    asc.addCompilerExtension(new ManagedExtension(gendir, generateAbstractSyntaxTree,
                                                      compilerConfig.getServicesDependencies(), false));
    asc.addCompilerExtension(new SkinPartExtension());
    // asc.addCompilerExtension(new flex2.compiler.util.TraceExtension());
   
    // support MXML
View Full Code Here


    // IMPORTANT!!!! The HostComponentExtension must run before the BindableExtension!!!!
    asc.addCompilerExtension(new HostComponentExtension(configuration.getCompilerConfiguration().reportMissingRequiredSkinPartsAsWarnings()) );
   
    String gendir = (compilerConfig.keepGeneratedActionScript()? compilerConfig.getGeneratedDirectory() : null);
    asc.addCompilerExtension(new BindableExtension(gendir, compilerConfig.getGenerateAbstractSyntaxTree(),true) );
    asc.addCompilerExtension(new ManagedExtension(gendir, compilerConfig.getGenerateAbstractSyntaxTree(),true) );

    ((flex2.compiler.mxml.MxmlCompiler)compilers[1]).addImplementationCompilerExtension(asdoc);

    if (ThreadLocalToolkit.getBenchmark() != null)
    {
View Full Code Here

    }
   
    asc.addCompilerExtension(new DataBindingExtension(gendir, mxmlConfiguration.showBindingWarnings(),
                              mxmlConfiguration.getGenerateAbstractSyntaxTree(),
                                                          ascConfiguration.getDefine()));
    asc.addCompilerExtension(new ManagedExtensionError());
        // asc.addCompilerExtension(new flex2.compiler.util.TraceExtension());
    }
View Full Code Here

    }
   
    asc.addCompilerExtension(new DataBindingExtension(gendir, mxmlConfiguration.showBindingWarnings(),
                              mxmlConfiguration.getGenerateAbstractSyntaxTree(),
                                                          ascConfiguration.getDefine()));
    asc.addCompilerExtension(new ManagedExtensionError());
        // asc.addCompilerExtension(new flex2.compiler.util.TraceExtension());
    }
View Full Code Here

            if( classDefinition instanceof BinaryClassDefNode )
            {
                // OV is already built, so use that to process the members, since
                // binary class defs won't have anything in their statement lists
                processMembers(new As3Class(classDefinition, null), (ClassInfo)currentInfo);
            }

            super.evaluate(context, classDefinition);

            currentInfo = oldInfo;
View Full Code Here

        return null;
    }

    private Map<String, Object> getMetaDataValues(MetaDataNode node, Context context)
    {
        MetaData metaData = new MetaData(node);
        int len = metaData.count();
        Map<String, Object> values = new HashMap<String, Object>();
        for (int i = 0; i < len; i++)
        {
            String key = metaData.getKey(i);
            String value = metaData.getValue(i);
            // FIXME: look for place where source is being added to generated Embeds remove the key.equals check
            if (key == null || key.equals(Transcoder.SOURCE))
            {
                int octothorpe = value.indexOf( "#" );
                if (octothorpe != -1)
View Full Code Here

    public Value evaluate(Context context, MetaDataNode node)
    {
        if ("Embed".equals(node.getId()))
        {
            MetaData metaData = new MetaData(node);
            int len = metaData.count();

            for (int i = 0; i < len; i++)
            {
                String key = metaData.getKey(i);

                if ((key != null) && key.equals(Transcoder.SKINCLASS))
                {
                    String skinClass = metaData.getValue(i);
                    unit.inheritance.add(new MultiName(NameFormatter.toColon(skinClass)));
                }
            }
        }
View Full Code Here

    Parser parser = new Parser(context, stringBuffer.toString(), file.getName());
    MetaDataNode metaDataNode = parser.parseMetaData();
    macromedia.asc.parser.MetaDataEvaluator metaDataEvaluator = new macromedia.asc.parser.MetaDataEvaluator();
    metaDataNode.evaluate(context, metaDataEvaluator);

    return context.errorCount() > 0 ? null : new MetaData(metaDataNode);
  }
View Full Code Here

    return null;
  }

    private void processStyle(Context context, MetaDataNode metaDataNode)
    {
        MetaData metaData = new MetaData(metaDataNode);
        String styleName = metaData.getValue("name");
      String typeName = metaData.getValue("type");

        if (styleName == null)
        {
            // preilly: we should report this earlier in the process.
          context.localizedError2(metaDataNode.pos(), new StyleHasMissingName());
View Full Code Here

            {
                processResourceBundle(cx, node, true);
            }
            else if (StandardDefs.MD_SWF.equals(node.getId()))
            {
                unit.swfMetaData = new MetaData(node);
            }
            else if (StandardDefs.MD_FRAME.equals(node.getId()))
            {
                processFrameMetaData(node);
            }
View Full Code Here

TOP

Related Classes of flex2.compiler.as3.HostComponentExtension

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.