Examples of IMXMLPropertySpecifierNode


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

    return "Class";
  }
 
  protected IMXMLPropertySpecifierNode testMXMLPropertySpecifierNode(String[] code, String qname)
  {
    IMXMLPropertySpecifierNode node = getMXMLPropertySpecifierNode(code);
    assertThat("getInstanceNode.getNodeID", node.getInstanceNode().getNodeID(), is(ASTNodeID.MXMLClassID));
    assertThat("getInstanceNode.getValue.getQualifiedName", ((IMXMLClassNode)node.getInstanceNode()).getValue(project).getQualifiedName(), is(qname));
    return node;
  }
View Full Code Here

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

        "    <mx:operation name='op2'/>",
        "</mx:WebService>"
    };
    IMXMLWebServiceNode node = getMXMLWebServiceNode(code);
    assertThat("getChildCount", node.getChildCount(), is(3));
    IMXMLPropertySpecifierNode wsdlNode = (IMXMLPropertySpecifierNode)node.getChild(0);
    assertThat("", wsdlNode.getName(), is("wsdl"));
    IMXMLWebServiceOperationNode op1Node = (IMXMLWebServiceOperationNode)node.getChild(1);
    assertThat("", op1Node.getName(), is("mx.rpc.soap.mxml.Operation"));
    assertThat("", op1Node.getOperationName(), is("op1"));
    IMXMLWebServiceOperationNode op2Node = (IMXMLWebServiceOperationNode)node.getChild(2);
    assertThat("", op2Node.getName(), is("mx.rpc.soap.mxml.Operation"));
View Full Code Here

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

        "    </fx:b>",
      "</fx:Object>"
    };
    IMXMLObjectNode node = getMXMLObjectNode(code);
    assertThat("getChildCount", node.getChildCount(), is(2));
    IMXMLPropertySpecifierNode child0 = (IMXMLPropertySpecifierNode)node.getChild(0);
    assertThat("[0]name", child0.getName(), is("a"));
    assertThat("[0]value", ((IMXMLStringNode)child0.getInstanceNode()).getValue(), is("xxx"));
    IMXMLPropertySpecifierNode child1 = (IMXMLPropertySpecifierNode)node.getChild(1);
    assertThat("[1]name", child1.getName(), is("b"));
    assertThat("[1]value", ((IMXMLStringNode)child1.getInstanceNode()).getValue(), is("yyy"));
  }
View Full Code Here

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

        "    <fx:b>yyy</fx:b>",
      "</fx:Object>"
    };
    IMXMLObjectNode node = getMXMLObjectNode(code);
    assertThat("getChildCount", node.getChildCount(), is(2));
    IMXMLPropertySpecifierNode child0 = (IMXMLPropertySpecifierNode)node.getChild(0);
    assertThat("[0]name", child0.getName(), is("a"));
    assertThat("[0]value", ((IMXMLStringNode)child0.getInstanceNode()).getValue(), is("xxx"));
    IMXMLPropertySpecifierNode child1 = (IMXMLPropertySpecifierNode)node.getChild(1);
    assertThat("[1]name", child1.getName(), is("b"));
    assertThat("[1]value", ((IMXMLStringNode)child1.getInstanceNode()).getValue(), is("yyy"));
  }
View Full Code Here

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

    {
      "<fx:Object a='xxx' b='yyy'/>"
    };
    IMXMLObjectNode node = getMXMLObjectNode(code);
    assertThat("getChildCount", node.getChildCount(), is(2));
    IMXMLPropertySpecifierNode child0 = (IMXMLPropertySpecifierNode)node.getChild(0);
    assertThat("[0]name", child0.getName(), is("a"));
    assertThat("[0]value", ((IMXMLStringNode)child0.getInstanceNode()).getValue(), is("xxx"));
    IMXMLPropertySpecifierNode child1 = (IMXMLPropertySpecifierNode)node.getChild(1);
    assertThat("[1]name", child1.getName(), is("b"));
    assertThat("[1]value", ((IMXMLStringNode)child1.getInstanceNode()).getValue(), is("yyy"));
  }
View Full Code Here

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

        "    </mx:request>",
        "</mx:HTTPService>"
    };
    IMXMLHTTPServiceNode node = getMXMLHTTPServiceNode(code);
    assertThat("getChildCount", node.getChildCount(), is(3));
    IMXMLPropertySpecifierNode urlNode = (IMXMLPropertySpecifierNode)node.getChild(0);
    assertThat("", urlNode.getName(), is("url"));
    IMXMLPropertySpecifierNode methodNode = (IMXMLPropertySpecifierNode)node.getChild(1);
    assertThat("", methodNode.getName(), is("method"));
    IMXMLHTTPServiceRequestPropertyNode requestNode = (MXMLHTTPServiceRequestPropertyNode)node.getChild(2);
    assertThat("", requestNode.getName(), is("request"));
  }
View Full Code Here

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

        return "uint";
    }
   
    protected IMXMLPropertySpecifierNode testMXMLPropertySpecifierNode(String[] code, long value)
    {
        IMXMLPropertySpecifierNode node = getMXMLPropertySpecifierNode(code);
        assertThat("getInstanceNode.getNodeID", node.getInstanceNode().getNodeID(), is(ASTNodeID.MXMLUintID));
        assertThat("getInstanceNode.getValue", ((IMXMLUintNode)node.getInstanceNode()).getValue(), is(value));
        return node;
    }
View Full Code Here

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

        "    </mx:method>",
        "</mx:RemoteObject>"
    };
    IMXMLRemoteObjectNode node = getMXMLRemoteObjectNode(code);
    assertThat("getChildCount", node.getChildCount(), is(2));
    IMXMLPropertySpecifierNode destinationNode = (IMXMLPropertySpecifierNode)node.getChild(0);
    assertThat("", destinationNode.getName(), is("destination"));
    IMXMLRemoteObjectMethodNode methodNode = (IMXMLRemoteObjectMethodNode)node.getChild(1);
    assertThat("", methodNode.getName(), is("mx.rpc.remoting.mxml.Operation"));
    assertThat("", methodNode.getMethodName(), is("GetQuote"));
  }
View Full Code Here

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

   
  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)));
    return node;
  }
View Full Code Here

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

        return "Boolean";
    }
   
  protected IMXMLPropertySpecifierNode testMXMLPropertySpecifierNode(String[] code, boolean value)
  {
    IMXMLPropertySpecifierNode node = getMXMLPropertySpecifierNode(code);
    assertThat("getInstanceNode.getNodeID", node.getInstanceNode().getNodeID(), is(ASTNodeID.MXMLBooleanID));
        assertThat("getInstanceNode.getValue", ((IMXMLBooleanNode)node.getInstanceNode()).getValue(), is(true));
    return node;
  }
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.