Examples of IMXMLEventSpecifierNode


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

    }
 
  private IMXMLEventSpecifierNode getMXMLEventSpecifierNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLEventSpecifierNode node = (IMXMLEventSpecifierNode)findFirstDescendantOfType(fileNode, IMXMLEventSpecifierNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLEventSpecifierID));
    assertThat("children", node.getChildCount() == node.getASNodes().length, is(true));
    for (int i = 0; i < node.getChildCount(); i++)
    {
      assertThat("children", node.getChild(i) == node.getASNodes()[i], is(true));
    }
    return node;
  }
View Full Code Here

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

  {
    String[] code = new String[]
    {
      "<d:Sprite xmlns:fx='http://ns.adobe.com/mxml/2009' xmlns:d='flash.display.*' click=''/>"
    };
    IMXMLEventSpecifierNode node = getMXMLEventSpecifierNode(code);
    assertThat("getName", node.getName(), is("click"));
    assertThat("getSuffix", node.getSuffix(), is(""));
    assertThat("getDefinition", ((IEventDefinition)node.getDefinition()).getBaseName(), is("click"));
    IASNode[] asNodes = node.getASNodes();
    assertThat("getASNodes", asNodes.length, is(0));
  }
View Full Code Here

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

  {
    String[] code = new String[]
    {
      "<d:Sprite xmlns:fx='http://ns.adobe.com/mxml/2009' xmlns:d='flash.display.*' click=' '/>"
    };
    IMXMLEventSpecifierNode node = getMXMLEventSpecifierNode(code);
    assertThat("getName", node.getName(), is("click"));
    assertThat("getSuffix", node.getSuffix(), is(""));
    assertThat("getDefinition", ((IEventDefinition)node.getDefinition()).getBaseName(), is("click"));
    IASNode[] asNodes = node.getASNodes();
    assertThat("getASNodes", asNodes.length, is(0));
  }
View Full Code Here

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

  {
    String[] code = new String[]
    {
      "<d:Sprite xmlns:fx='http://ns.adobe.com/mxml/2009' xmlns:d='flash.display.*' click=' \t\r\n'/>"
    };
    IMXMLEventSpecifierNode node = getMXMLEventSpecifierNode(code);
    assertThat("getName", node.getName(), is("click"));
    assertThat("getSuffix", node.getSuffix(), is(""));
    assertThat("getDefinition", ((IEventDefinition)node.getDefinition()).getBaseName(), is("click"));
    IASNode[] asNodes = node.getASNodes();
    assertThat("getASNodes", asNodes.length, is(0));
  }
View Full Code Here

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

  {
    String[] code = new String[]
    {
      "<d:Sprite xmlns:fx='http://ns.adobe.com/mxml/2009' xmlns:d='flash.display.*' click='trace(1); trace(2)'/>"
    };
    IMXMLEventSpecifierNode node = getMXMLEventSpecifierNode(code);
    assertThat("getName", node.getName(), is("click"));
    assertThat("getSuffix", node.getSuffix(), is(""));
    assertThat("getDefinition", ((IEventDefinition)node.getDefinition()).getBaseName(), is("click"));
    IASNode[] asNodes = node.getASNodes();
    assertThat("getASNodes", asNodes.length, is(2));
    assertThat("child 0", asNodes[0].getNodeID(), is(ASTNodeID.FunctionCallID));
    assertThat("child 0", asNodes[1].getNodeID(), is(ASTNodeID.FunctionCallID));
  }
View Full Code Here

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

    {
      "<d:Sprite xmlns:fx='http://ns.adobe.com/mxml/2009' xmlns:d='flash.display.*'>",
        "    <d:click/>",
      "</d:Sprite>"
    };
    IMXMLEventSpecifierNode node = getMXMLEventSpecifierNode(code);
    assertThat("getName", node.getName(), is("click"));
    assertThat("getSuffix", node.getSuffix(), is(""));
    assertThat("getDefinition", ((IEventDefinition)node.getDefinition()).getBaseName(), is("click"));
    IASNode[] asNodes = node.getASNodes();
    assertThat("getASNodes", asNodes.length, is(0));
  }
View Full Code Here

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

    {
      "<d:Sprite xmlns:fx='http://ns.adobe.com/mxml/2009' xmlns:d='flash.display.*'>",
        "    <d:click></d:click>",
      "</d:Sprite>"
    };
    IMXMLEventSpecifierNode node = getMXMLEventSpecifierNode(code);
    assertThat("getName", node.getName(), is("click"));
    assertThat("getSuffix", node.getSuffix(), is(""));
    assertThat("getDefinition", ((IEventDefinition)node.getDefinition()).getBaseName(), is("click"));
    IASNode[] asNodes = node.getASNodes();
    assertThat("getASNodes", asNodes.length, is(0));
  }
View Full Code Here

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

    {
      "<d:Sprite xmlns:fx='http://ns.adobe.com/mxml/2009' xmlns:d='flash.display.*'>",
        "    <d:click> \t\r\n</d:click>",
      "</d:Sprite>"
    };
    IMXMLEventSpecifierNode node = getMXMLEventSpecifierNode(code);
    assertThat("getName", node.getName(), is("click"));
    assertThat("getSuffix", node.getSuffix(), is(""));
    assertThat("getDefinition", ((IEventDefinition)node.getDefinition()).getBaseName(), is("click"));
    IASNode[] asNodes = node.getASNodes();
    assertThat("getASNodes", asNodes.length, is(0));
  }
View Full Code Here

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

      "        trace(1);",
      "        trace(2);",
      "    </d:click>",
        "</d:Sprite/>"
    };
    IMXMLEventSpecifierNode node = getMXMLEventSpecifierNode(code);
    assertThat("getName", node.getName(), is("click"));
    assertThat("getSuffix", node.getSuffix(), is(""));
    assertThat("getDefinition", ((IEventDefinition)node.getDefinition()).getBaseName(), is("click"));
    IASNode[] asNodes = node.getASNodes();
    assertThat("getASNodes", asNodes.length, is(2));
    assertThat("child 0", asNodes[0].getNodeID(), is(ASTNodeID.FunctionCallID));
    assertThat("child 0", asNodes[1].getNodeID(), is(ASTNodeID.FunctionCallID));
  }
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.