Package flex2.compiler.util

Examples of flex2.compiler.util.QName


    if (accessorMap == null)
    {
      accessorMap = new HashMap<QName, AccessorInfo>();
    }

    QName qName = new QName(NodeMagic.getUserNamespace(node), NodeMagic.getFunctionName(node));

    AccessorInfo info = accessorMap.get(qName);

    //  Note: second condition indicates error (variable and getter/setter with same name), but here we just
    //  plow ahead - error will be caught and reported later by ASC
View Full Code Here


   */
  public abstract void removeOriginalMetaData(DefinitionNode definitionNode);

    public boolean hasAccessor(String id)
    {
      return hasAccessor(new QName(id));
    }
View Full Code Here

    return ((accessorMap != null) && accessorMap.containsKey(qName));
  }

    public AccessorInfo getAccessor(String id)
    {
      return getAccessor(new QName(id));
    }
View Full Code Here

                String typeName = accessorInfo.getTypeName();
                MultiName multiName = classInfo.getMultiName(typeName);               

                if (multiName.getNamespace().length == 1)
                {
                    QName qName = multiName.getQName(0);
                    String className = qName.getLocalPart();

                    // Check if we have a Vector type.  If so, just
                    // import the element type.
                    int lessThanIndex = className.indexOf("<");
           
View Full Code Here

            {
                // Parse FXG to a DOM
                FXGNode node = parser.parse(source.getInputStream(), source.getNameForReporting());
                context.setAttribute(FXG_DOM_ROOT, node);

                QName topLevelQName = getQNameFromSource(source);
                unit.topLevelDefinitions.add(topLevelQName);

                MultiName baseMultiName = MULTINAME_SPRITEVISUALELEMENT;
                if (node instanceof GraphicNode)
                {
View Full Code Here

                    namespaceURI = ((IdentifierNode) getExpression.expr).name;
                }
            }
        }

        return new QName(namespaceURI, qualifiedIdentifier.name);
    }
View Full Code Here

                    if (additionalAsset.getSymbol() != null)
                    {
                        Source additionalSource = generateAdditionalSource(unit, additionalAsset);
                        if (additionalSource != null)
                        {
                            QName additionalQName = new QName(additionalAsset.getPackageName(), additionalAsset.getClassName());
                            additionalSources.put(additionalQName, additionalSource);
                        }
                    }
                }
                unit.addGeneratedSources(additionalSources);
View Full Code Here

        updateObsoletedSources();
       
      Set qnames = swcGroup.getQNames();
      for (Iterator iterator = qnames.iterator(); iterator.hasNext();)
      {
        QName qName = (QName)iterator.next();
        packageNames.add(qName.getNamespace());
      }

        ThreadLocalToolkit.getPathResolver().addSinglePathResolver(new SwcPathResolver(swcGroup));

        mappings.addMappings( swcGroup.getNameMappings() );
View Full Code Here

                {
                    Iterator<String> iterator = script.getDefinitionIterator();

                    while (iterator.hasNext())
                    {
                        def2source.put(new QName(iterator.next()), s);
                    }

                    name2source.put(s.getName(), s);

                    CompilationUnit cachedCompilationUnit = script.getCompilationUnit();
View Full Code Here

        CompilationUnit u = s.newCompilationUnit(null, new CompilerContext());
        u.setSignatureChecksum(script.getSignatureChecksum());

        for (Iterator i = script.getDefinitionIterator(); i.hasNext();)
        {
            u.topLevelDefinitions.add(new QName((String) i.next()));
        }

        SwcDependencySet set = script.getDependencySet();

        for (Iterator i = set.getDependencyIterator(SwcDependencySet.INHERITANCE); i != null && i.hasNext();)
View Full Code Here

TOP

Related Classes of flex2.compiler.util.QName

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.