Examples of IMXMLDeclarationsNode


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

public class MXMLDeclarationsNodeTests extends MXMLNodeBaseTests
  private IMXMLDeclarationsNode getMXMLDeclarationsNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLDeclarationsNode node = (IMXMLDeclarationsNode)findFirstDescendantOfType(fileNode, IMXMLDeclarationsNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLDeclarationsID));
    assertThat("getName", node.getName(), is("Declarations"));
    return node;
  }
View Full Code Here

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

  {
    String[] code = new String[]
    {
      "<fx:Declarations/>"
    };
    IMXMLDeclarationsNode node = getMXMLDeclarationsNode(code);
    assertThat("getChildCount", node.getChildCount(), is(0));
    assertThat("getDeclarationInstanceNodes", node.getDeclarationInstanceNodes().length, is(0));
  }
View Full Code Here

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

    String[] code = new String[]
    {
        "<fx:Declarations>",
        "</fx:Declarations>"
      };
    IMXMLDeclarationsNode node = getMXMLDeclarationsNode(code);
    assertThat("getChildCount", node.getChildCount(), is(0));
    assertThat("getDeclarationInstanceNodes", node.getDeclarationInstanceNodes().length, is(0));
  }
View Full Code Here

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

    {
        "<fx:Declarations>",
        "    <fx:int/>",
        "</fx:Declarations>"
    };
    IMXMLDeclarationsNode node = getMXMLDeclarationsNode(code);
    assertThat("getChildCount", node.getChildCount(), is(1));
    assertThat("getDeclarationInstanceNodes", node.getDeclarationInstanceNodes().length, is(1));
    assertThat("getDeclarationInstanceNodes[0]", node.getDeclarationInstanceNodes()[0].getName(), is("int"));
  }
View Full Code Here

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

        "<fx:Declarations className='MySprite'>",
        "    <fx:int/>",
        "    <fx:uint/>",
        "</fx:Declarations>"
    };
    IMXMLDeclarationsNode node = getMXMLDeclarationsNode(code);
    assertThat("getChildCount", node.getChildCount(), is(2));
    assertThat("getDeclarationInstanceNodes", node.getDeclarationInstanceNodes().length, is(2));
    assertThat("getDeclarationInstanceNodes[0]", node.getDeclarationInstanceNodes()[0].getName(), is("int"));
    assertThat("getDeclarationInstanceNodes[1]", node.getDeclarationInstanceNodes()[1].getName(), is("uint"));
  }
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.