Package org.apache.flex.compiler.tree.mxml

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


    }
     
  private IMXMLImplementsNode getMXMLImplementsNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLImplementsNode node = (IMXMLImplementsNode)findFirstDescendantOfType(fileNode, IMXMLImplementsNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLImplementsID));
    assertThat("getName", node.getName(), is("implements"));
    return node;
  }
View Full Code Here


  {
    String[] code = new String[]
    {
      "implements=' I1 '"
    };
    IMXMLImplementsNode node = getMXMLImplementsNode(code);
    assertThat("getChildCount", node.getChildCount(), is(1));
    assertThat("getInterfaceNodes.length", node.getInterfaceNodes().length, is(1));
    IIdentifierNode interfaceNode0 = node.getInterfaceNodes()[0];
    assertThat("interfaceNode0", interfaceNode0, is(node.getChild(0)));
    assertThat("interfaceNode0.getNodeID", interfaceNode0.getNodeID(), is(ASTNodeID.IdentifierID));
    assertThat("interfaceNode0.getName", interfaceNode0.getName(), is("I1"));
  }
View Full Code Here

  {
    String[] code = new String[]
    {
      "implements=' a.b.I1 , c.d.I2 '"
    };
    IMXMLImplementsNode node = getMXMLImplementsNode(code);
    assertThat("getChildCount", node.getChildCount(), is(2));
    assertThat("getInterfaceNodes.length", node.getInterfaceNodes().length, is(2));
    IIdentifierNode interfaceNode0 = node.getInterfaceNodes()[0];
    assertThat("interfaceNode0", interfaceNode0, is(node.getChild(0)));
    assertThat("interfaceNode0.getNodeID", interfaceNode0.getNodeID(), is(ASTNodeID.FullNameID));
    assertThat("interfaceNode0.getName", interfaceNode0.getName(), is("a.b.I1"));
    IIdentifierNode interfaceNode1 = node.getInterfaceNodes()[1];
    assertThat("interfaceNode1", interfaceNode1, is(node.getChild(1)));
    assertThat("interfaceNode1.getNodeID", interfaceNode1.getNodeID(), is(ASTNodeID.FullNameID));
    assertThat("interfaceNode1.getName", interfaceNode1.getName(), is("c.d.I2"));
  }
View Full Code Here

TOP

Related Classes of org.apache.flex.compiler.tree.mxml.IMXMLImplementsNode

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.