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

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


*/
public class MXMLXMLListNodeTests extends MXMLInstanceNodeTests
{
  private IMXMLXMLListNode getMXMLXMLListNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLXMLListNode node = (IMXMLXMLListNode)findFirstDescendantOfType(fileNode, IMXMLXMLListNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLXMLListID));
    assertThat("getName", node.getName(), is("XMLList"));
    return node;
  }
View Full Code Here


*/
public class MXMLXMLNodeTests extends MXMLInstanceNodeTests
  private IMXMLXMLNode getMXMLXMLNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLXMLNode node = (IMXMLXMLNode)findFirstDescendantOfType(fileNode, IMXMLXMLNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLXMLID));
    assertThat("getName", node.getName(), is("XML"));
    return node;
  }
View Full Code Here

  abstract protected String getPropertyType();
   
  protected IMXMLPropertySpecifierNode getMXMLPropertySpecifierNode(String[] code)
  {
    String mxml = getMXML(code);
    IMXMLFileNode fileNode = getMXMLFileNode(mxml);
    IMXMLPropertySpecifierNode node = (IMXMLPropertySpecifierNode)findFirstDescendantOfType(fileNode, IMXMLPropertySpecifierNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLPropertySpecifierID));
    assertThat("getName", node.getName(), is("p"));
    assertThat("getChildCount", node.getChildCount(), is(1));
    assertThat("getInstanceNode", node.getInstanceNode(), is(node.getChild(0)));
View Full Code Here

*/
public class MXMLStringNodeTests extends MXMLExpressionNodeBaseTests
{
  private IMXMLStringNode getMXMLStringNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLStringNode node = (IMXMLStringNode)findFirstDescendantOfType(fileNode, IMXMLStringNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLStringID));
    assertThat("getName", node.getName(), is("String"));
    return node;
  }
View Full Code Here

*/
public class MXMLComponentNodeTests extends MXMLInstanceNodeTests
  private IMXMLComponentNode getMXMLComponentNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLComponentNode node = (IMXMLComponentNode)findFirstDescendantOfType(fileNode, IMXMLComponentNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLComponentID));
    //assertThat("getName", node.getName(), is("Component"));
    return node;
  }
View Full Code Here

*/
public class MXMLClassNodeTests extends MXMLExpressionNodeBaseTests
{
  private IMXMLClassNode getMXMLClassNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLClassNode node = (IMXMLClassNode)findFirstDescendantOfType(fileNode, IMXMLClassNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLClassID));
    assertThat("getName", node.getName(), is("Class"));
    return node;
  }
View Full Code Here

        return mxml;
    }
     
  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

*/
public class MXMLHTTPServiceNodeTests extends MXMLInstanceNodeTests
{
  private IMXMLHTTPServiceNode getMXMLHTTPServiceNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLHTTPServiceNode node = (IMXMLHTTPServiceNode)findFirstDescendantOfType(fileNode, IMXMLHTTPServiceNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLHTTPServiceID));
    assertThat("getName", node.getName(), is("mx.rpc.http.mxml.HTTPService"));
    return node;
  }
View Full Code Here

        return StringUtils.join(code, "\n");
    }
 
  private IMXMLStateNode getMXMLStateNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLStateNode node = (IMXMLStateNode)findFirstDescendantOfType(fileNode, IMXMLStateNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLStateID));
    assertThat("getName", node.getName(), is("mx.states.State"));
    return node;
  }
View Full Code Here

*/
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

TOP

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

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.