Package flex2.compiler.mxml.reflect

Examples of flex2.compiler.mxml.reflect.Type


    else
    {
        document.setComment( node.comment );
    }
   
    Type type = nodeTypeResolver.resolveType(node, document);

    constructComponent(type, node.beginLine);

    //  TODO eliminate horrible confusion by renaming one or the other "root" below,
View Full Code Here


                                         Type lvalueArrayElementType,
                                         String lvalueDescription,
                                         boolean rvalueIsSingleton,
                                         boolean isDefaultProperty)
    {
        Type rtype = nodeTypeResolver.resolveType(node, document);

        // Determine type compatibility. We account for the possibility of
        // incorrectly nested language or service tags. 
        String rvalueTypeName = (rtype != null) ? rtype.getName() : node.getLocalPart();
        int compat = TypeCompatibility.check(lvalueType, lvalueArrayElementType, rtype, rvalueIsSingleton, standardDefs);
        compat = coerceStatefulNodes(node, lvalueType, compat);
                 
        switch (compat)
        {
View Full Code Here

    }

    // Only do the "percent" logic for Application nodes, not modules. There is no
    // html wrapper for a module and the logic keeps modules from sizing
    // to the ModuleLoader component, SDK-9527.
        Type nodeType = nodeTypeResolver.resolveType(node, document);
        boolean isApplication = StandardDefs.isApplication(nodeType);

    Attribute width = node.getAttribute(DEFAULT_NAMESPACE, rootAttrWidth);
        if (width != null && isApplication)
        {
View Full Code Here

      {
        super.nestedDeclaration();
      }
      else
      {
        Type childType = nodeTypeResolver.resolveType(child, document);
        assert childType != null : "nested declaration node type == null, node = " + child.image;

        if (standardDefs.isContainer(parentType) && standardDefs.isIUIComponent(childType) &&
          ((mimeType.equals(MimeMappings.MXML) && (document.getVersion() < 4)) ||
           (parentType.getDefaultProperty() == null)))
        {
          processVisualChild(child);
        }
        else if (child instanceof ReparentNode)
        {
          ComponentBuilder builder = new ComponentBuilder(unit, typeTable, mxmlConfiguration, document, component, null, null, true, null);
          child.analyze(builder);
        }
              else if ((standardDefs.isContainer(parentType) &&
                        (childType.isAssignableTo(standardDefs.CLASS_RADIOBUTTONGROUP) ||
                                childType.isAssignableTo(standardDefs.CLASS_SPARK_RADIOBUTTONGROUP))))
              {
                  // Special cases to allow non-visual children in visual containers. 
                    ComponentBuilder builder = new ComponentBuilder(unit, typeTable, mxmlConfiguration, document, component, null, null, true, null);
                    child.analyze(builder);                 
              }       
View Full Code Here

    }

        protected void vectorNode(Assignable property, VectorNode node)
        {
            String typeAttributeValue = (String) node.getAttribute(StandardDefs.PROP_TYPE).getValue();
            Type elementType = typeTable.getType(NameFormatter.toColon(typeAttributeValue));
            VectorBuilder builder = new VectorBuilder(unit, typeTable, mxmlConfiguration, document, null, null, elementType, true);
            node.analyze(builder);
        }
View Full Code Here

     *
     */
    public void processTextInitializer(String text, Type vectorElementType, boolean cdata, int line)
    {
        int flags = cdata ? TextParser.FlagInCDATA : 0;
        Type vectorType = typeTable.getVectorType(vectorElementType);
        Object result = textParser.parseValue(text, vectorType, vectorElementType, flags, line, SymbolTable.VECTOR);

        if (result != null)
        {
            if (result instanceof BindingExpression)
View Full Code Here

        }

        protected void vectorNode(Assignable property, VectorNode node)
        {
            String typeAttributeValue = (String) node.getAttribute(StandardDefs.PROP_TYPE).getValue();
            Type elementType = typeTable.getType(NameFormatter.toColon(typeAttributeValue));
            VectorBuilder builder = new VectorBuilder(unit, typeTable, mxmlConfiguration, document,
                    vector, null, elementType, allowBinding);
            node.analyze(builder);

            if (builder.vector.getType().isAssignableTo(getElementType()))
View Full Code Here

      if (document != null)
    {
        String className = document.getLocalClass(node.getNamespace(), node.getLocalPart());
        if (className != null)
        {
            Type localType = typeTable.getType(className);
            if (localType != null)
            {
                type = localType;
                return;
            }
View Full Code Here

  }

  protected void vectorNode(Assignable property, VectorNode node)
  {
        String typeAttributeValue = (String) node.getAttribute(StandardDefs.PROP_TYPE).getValue();
        Type elementType = typeTable.getType(NameFormatter.toColon(typeAttributeValue));

        if (elementType != null)
        {
            type = typeTable.getVectorType(elementType);
        }
View Full Code Here

    if (ThreadLocalToolkit.errorCount() > 0)
    {
      return;
    }

        Type type = typeTable.getType(node.getNamespace(), node.getLocalPart());

    component = new Model(document, type, node.beginLine);
        registerModel(node, component, true);

    processAttributes(node, type);
View Full Code Here

TOP

Related Classes of flex2.compiler.mxml.reflect.Type

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.