Examples of IMXMLDesignLayerNode


Examples of org.apache.flex.compiler.tree.mxml.IMXMLDesignLayerNode

            {
                final IASNode child = node.getChild(i);
                if (child instanceof IMXMLDesignLayerNode)
                {
                    // Call temp.addLayer(child) if there's a DesignLayer node in the direct children.
                    final IMXMLDesignLayerNode designLayerChildNode = (IMXMLDesignLayerNode)child;
                    if (!designLayerChildNode.skipCodeGeneration())
                        callAddLayer(node, context, designLayerChildNode);
                }
                else if (child instanceof IMXMLInstanceNode)
                {
                    // Set directInstanceChild.designLayer = designLayer.
View Full Code Here

Examples of org.apache.flex.compiler.tree.mxml.IMXMLDesignLayerNode

            if (child instanceof IMXMLSpecifierNode)
                continue;

            if (child instanceof IMXMLDesignLayerNode)
            {
                final IMXMLDesignLayerNode designLayerNode = (IMXMLDesignLayerNode)child;
                result += designLayerNode.getHoistedChildCount();
            }
            else if (child instanceof IMXMLInstanceNode)
            {
                result++;
            }
View Full Code Here

Examples of org.apache.flex.compiler.tree.mxml.IMXMLDesignLayerNode

public class MXMLDesignLayerNodeTests extends MXMLInstanceNodeTests
{
  private IMXMLDesignLayerNode getMXMLDesignLayerNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLDesignLayerNode node = (IMXMLDesignLayerNode)findFirstDescendantOfType(fileNode, IMXMLDesignLayerNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLDesignLayerID));
    assertThat("getName", node.getName(), is("DesignLayer"));
    return node;
  }
View Full Code Here

Examples of org.apache.flex.compiler.tree.mxml.IMXMLDesignLayerNode

  {
    String[] code = new String[]
    {
      "<fx:DesignLayer/>"
    };
    IMXMLDesignLayerNode node = getMXMLDesignLayerNode(code);
    assertThat("getChildCount", node.getChildCount(), is(0));
    assertThat("getHoistedChildCount", node.getHoistedChildCount(), is(0));
    assertThat("skipCodeGeneration", node.skipCodeGeneration(), is(true));
  }
View Full Code Here

Examples of org.apache.flex.compiler.tree.mxml.IMXMLDesignLayerNode

  {
    String[] code = new String[]
    {
      "<fx:DesignLayer></fx:DesignLayer>"
    };
    IMXMLDesignLayerNode node = getMXMLDesignLayerNode(code);
    assertThat("getChildCount", node.getChildCount(), is(0));
    assertThat("getHoistedChildCount", node.getHoistedChildCount(), is(0));
    assertThat("skipCodeGeneration", node.skipCodeGeneration(), is(true));
  }
View Full Code Here

Examples of org.apache.flex.compiler.tree.mxml.IMXMLDesignLayerNode

  {
    String[] code = new String[]
    {
      "<fx:DesignLayer> \t\r\n</fx:DesignLayer>"
    };
    IMXMLDesignLayerNode node = getMXMLDesignLayerNode(code);
    assertThat("getChildCount", node.getChildCount(), is(0));
    assertThat("getHoistedChildCount", node.getHoistedChildCount(), is(0));
    assertThat("skipCodeGeneration", node.skipCodeGeneration(), is(true));
  }
View Full Code Here

Examples of org.apache.flex.compiler.tree.mxml.IMXMLDesignLayerNode

  {
    String[] code = new String[]
    {
      "<fx:DesignLayer id=' dl1 ' visible=' false ' alpha=' 0.5 '/>"
    };
    IMXMLDesignLayerNode node = getMXMLDesignLayerNode(code);
    assertThat("getChildCount", node.getChildCount(), is(2)); // visible and alpha property nodes
    assertThat("getHoistedChildCount", node.getHoistedChildCount(), is(0));
    assertThat("skipCodeGeneration", node.skipCodeGeneration(), is(false));
    assertThat("getID", node.getID(), is("dl1"));
    assertThat("getChild(0).getName()", ((IMXMLPropertySpecifierNode)node.getChild(0)).getName(), is("visible"));
    assertThat("getChild(0).getName()", ((IMXMLPropertySpecifierNode)node.getChild(1)).getName(), is("alpha"));
  }
View Full Code Here

Examples of org.apache.flex.compiler.tree.mxml.IMXMLDesignLayerNode

      "<fx:DesignLayer>",
      "    <d:Sprite/>",
      "    <d:Sprite/>",
      "</fx:DesignLayer>"
    };
    IMXMLDesignLayerNode node = getMXMLDesignLayerNode(code);
    assertThat("getChildCount", node.getChildCount(), is(2));
    assertThat("getHoistedChildCount", node.getHoistedChildCount(), is(2));
    assertThat("skipCodeGeneration", node.skipCodeGeneration(), is(true));
  }
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.