Examples of AtEmbed


Examples of flex2.compiler.mxml.rep.AtEmbed

            {
                embedParams.put( Transcoder.FILE, path );           
            }

            embedParams.put( Transcoder.LINE, Integer.toString(styleDeclaration.getLineNumber()) );
            AtEmbed atEmbed = AtEmbed.create(propName, source, styleDeclaration.getPath(),
                                             styleDeclaration.getLineNumber(), embedParams, false);
            addAtEmbed(atEmbed);
        }
        else if (Trace.font)
        {
View Full Code Here

Examples of flex2.compiler.mxml.rep.AtEmbed

                    @SuppressWarnings("unchecked")
                  Map<String, VirtualFile> archiveFiles = (Map<String, VirtualFile>)context.getAttribute(CompilerContext.L10N_ARCHIVE_FILES);
                   
                  for (Iterator j = atEmbeds.iterator(); j.hasNext(); )
                  {
                    AtEmbed e = (AtEmbed) j.next();
                    String src = (String) e.getAttributes().get(Transcoder.SOURCE);
                    String original = (String) e.getAttributes().get(Transcoder.ORIGINAL);
                    if (src != null)
                    {
                      if (source.getRelativePath().length() == 0)
                      {
                        archiveFiles.put("locale/" + locales[i] + "/" + original, new LocalFile(new File(src)));
View Full Code Here

Examples of flex2.compiler.mxml.rep.AtEmbed

    String lineSep = System.getProperty("line.separator");
    StringJoiner.ItemStringer itemStringer = new StringJoiner.ItemStringer()
      {
        public String itemToString(Object obj)
        {
          AtEmbed atEmbed = (AtEmbed)obj;
          return atEmbed.codegenEmbedVar();
        }
      };
    return StringJoiner.join(atEmbeds, lineSep, itemStringer) + lineSep;
    }
View Full Code Here

Examples of flex2.compiler.mxml.rep.AtEmbed

        if (atEmbeds != null && configuration.archiveClassesAndAssets())
        {
          Map<String, LocalFile> archiveFiles = new HashMap<String, LocalFile>();
          for (Iterator<AtEmbed>  i = atEmbeds.iterator(); i.hasNext(); )
          {
            AtEmbed e = (AtEmbed) i.next();
            String src = (String) e.getAttributes().get(Transcoder.SOURCE);
            String original = (String) e.getAttributes().get(Transcoder.ORIGINAL);
            if (src != null)
            {
              archiveFiles.put(original, new LocalFile(new File(src)));
            }
          }
View Full Code Here

Examples of flex2.compiler.mxml.rep.AtEmbed

            {
                embedParams.put( Transcoder.FILE, path );           
            }

            embedParams.put( Transcoder.LINE, Integer.toString(styleDeclaration.getLineNumber()) );
            AtEmbed atEmbed = AtEmbed.create(propName, source, styleDeclaration.getPath(),
                                             styleDeclaration.getLineNumber(), embedParams, false);
            addAtEmbed(atEmbed);
        }
        else if (Trace.font)
        {
View Full Code Here

Examples of flex2.compiler.mxml.rep.AtEmbed

                    @SuppressWarnings("unchecked")
                  Map<String, VirtualFile> archiveFiles = (Map<String, VirtualFile>)context.getAttribute(CompilerContext.L10N_ARCHIVE_FILES);
                   
                  for (Iterator j = atEmbeds.iterator(); j.hasNext(); )
                  {
                    AtEmbed e = (AtEmbed) j.next();
                    String src = (String) e.getAttributes().get(Transcoder.SOURCE);
                    String original = (String) e.getAttributes().get(Transcoder.ORIGINAL);
                    if (src != null)
                    {
                      if (source.getRelativePath().length() == 0)
                      {
                        archiveFiles.put("locale/" + locales[i] + "/" + original, new LocalFile(new File(src)));
View Full Code Here

Examples of flex2.compiler.mxml.rep.AtEmbed

    String lineSep = System.getProperty("line.separator");
    StringJoiner.ItemStringer itemStringer = new StringJoiner.ItemStringer()
      {
        public String itemToString(Object obj)
        {
          AtEmbed atEmbed = (AtEmbed)obj;
          return atEmbed.codegenEmbedVar();
        }
      };
    return StringJoiner.join(atEmbeds, lineSep, itemStringer) + lineSep;
    }
View Full Code Here

Examples of flex2.compiler.mxml.rep.AtEmbed

     */
  private AtEmbed processEmbed(String key, String value)
  {
        int lineNumber = (lines.get(key)).intValue();
        String propertiesPath = getPropertyFileName();
        AtEmbed atEmbed = AtEmbed.create(symbolTable.perCompileData, source, value,
                                         propertiesPath, lineNumber, "_embed_properties_");

        if (atEmbed != null)
        {
            atEmbeds.put(atEmbed.getPropName(), atEmbed);
        }

        return atEmbed;
    }
View Full Code Here

Examples of flex2.compiler.mxml.rep.AtEmbed

        Iterator<AtEmbed> iterator = mxmlDocument.getAtEmbeds().iterator();

        while (iterator.hasNext())
        {
            AtEmbed atEmbed = iterator.next();
            Map<String, Object> attributes = atEmbed.getAttributes();
            MetaDataNode metaData =
                AbstractSyntaxTreeUtil.generateMetaData(nodeFactory, EMBED, attributes);
            result = nodeFactory.statementList(result, metaData);

            MemberExpressionNode memberExpression =
                AbstractSyntaxTreeUtil.generateGetterSelector(nodeFactory,
                                                              atEmbed.getType(),
                                                              true);
            TypeExpressionNode typeExpression =
                nodeFactory.typeExpression(memberExpression, true, false, -1);
            Node variableDefinition =
                AbstractSyntaxTreeUtil.generatePrivateVariable(nodeFactory,
                                                               typeExpression,
                                                               atEmbed.getPropName());
            result = nodeFactory.statementList(result, variableDefinition);
        }

        return result;
    }
View Full Code Here

Examples of flex2.compiler.mxml.rep.AtEmbed

        if (atEmbeds != null && configuration.archiveClassesAndAssets())
        {
          Map<String, LocalFile> archiveFiles = new HashMap<String, LocalFile>();
          for (Iterator<AtEmbed>  i = atEmbeds.iterator(); i.hasNext(); )
          {
            AtEmbed e = (AtEmbed) i.next();
            String src = (String) e.getAttributes().get(Transcoder.SOURCE);
            String original = (String) e.getAttributes().get(Transcoder.ORIGINAL);
            if (src != null)
            {
              archiveFiles.put(original, new LocalFile(new File(src)));
            }
          }
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.