Examples of IMXMLModelNode


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

public class MXMLModelNodeTests extends MXMLExpressionNodeBaseTests
{
  private IMXMLModelNode getMXMLModelNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLModelNode node = (IMXMLModelNode)findFirstDescendantOfType(fileNode, IMXMLModelNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLModelID));
    assertThat("getName", node.getName(), is("Model"));
    return node;
  }
View Full Code Here

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

  {
    String[] code = new String[]
    {
      "<fx:Model/>"
    };
    IMXMLModelNode node = getMXMLModelNode(code);
    assertThat("getChildCount", node.getChildCount(), is(0));
    assertThat("getRootNode", node.getRootNode(), is((IMXMLModelRootNode)null));
  }
View Full Code Here

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

  {
    String[] code = new String[]
    {
      "<fx:Model></fx:Model>"
    };
    IMXMLModelNode node = getMXMLModelNode(code);
    assertThat("getChildCount", node.getChildCount(), is(0));
    assertThat("getRootNode", node.getRootNode(), is((IMXMLModelRootNode)null));
  }
View Full Code Here

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

  {
    String[] code = new String[]
    {
      "<fx:Model> \t\r\n</fx:Model>"
    };
    IMXMLModelNode node = getMXMLModelNode(code);
    assertThat("getChildCount", node.getChildCount(), is(0));
    assertThat("getRootNode", node.getRootNode(), is((IMXMLModelRootNode)null));
  }
View Full Code Here

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

    {
      "<fx:Model>",
        "    <root/>",
      "</fx:Model>"
    };
    IMXMLModelNode node = getMXMLModelNode(code);
    assertThat("getChildCount", node.getChildCount(), is(1));
    IMXMLModelRootNode rootNode = node.getRootNode();
    assertThat("index", rootNode.getIndex(), is(IMXMLModelPropertyContainerNode.NO_INDEX));
    assertThat("property nodes", rootNode.getPropertyNodes().length, is(0));
  }
View Full Code Here

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

        "    <root>",
        "        <a/>",
        "    </root>",
      "</fx:Model>"
    };
    IMXMLModelNode node = getMXMLModelNode(code);
    assertThat("getChildCount", node.getChildCount(), is(1));
    IMXMLModelRootNode rootNode = node.getRootNode();
    assertThat("index", rootNode.getIndex(), is(IMXMLModelPropertyContainerNode.NO_INDEX));
    assertThat("property nodes", rootNode.getPropertyNodes().length, is(1));
    assertThat("a count", rootNode.getPropertyNodes("a").length, is(1));
  }
View Full Code Here

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

        "        <a/>",
        "        <b/>",
        "    </root>",
      "</fx:Model>"
    };
    IMXMLModelNode node = getMXMLModelNode(code);
    assertThat("getChildCount", node.getChildCount(), is(1));
    IMXMLModelRootNode rootNode = node.getRootNode();
    assertThat("index", rootNode.getIndex(), is(IMXMLModelPropertyContainerNode.NO_INDEX));
    assertThat("property nodes", rootNode.getPropertyNodes().length, is(4));
    assertThat("a count", rootNode.getPropertyNodes("a").length, is(2));
    assertThat("b count", rootNode.getPropertyNodes("a").length, is(2));
  }
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.