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

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


        return StringUtils.join(code, "\n");
    }
 
  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++)
    {
View Full Code Here


*/
public class MXMLObjectNodeTests extends MXMLInstanceNodeTests
{
  private IMXMLObjectNode getMXMLObjectNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLObjectNode node = (IMXMLObjectNode)findFirstDescendantOfType(fileNode, IMXMLObjectNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLObjectID));
    assertThat("getName", node.getName(), is("Object"));
    return node;
  }
View Full Code Here

*/
public class MXMLBindingNodeTests extends MXMLNodeBaseTests
{
  private IMXMLBindingNode getMXMLBindingNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLBindingNode node = (IMXMLBindingNode)findFirstDescendantOfType(fileNode, IMXMLBindingNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLBindingID));
    assertThat("getName", node.getName(), is("Binding"));
    return node;
  }
View Full Code Here

*/
public class MXMLMetadataNodeTests extends MXMLNodeBaseTests
{
  private IMXMLMetadataNode getMXMLMetadataNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLMetadataNode node = (IMXMLMetadataNode)findFirstDescendantOfType(fileNode, IMXMLMetadataNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLMetadataID));
    assertThat("getName", node.getName(), is("Metadata"));
    return node;
  }
View Full Code Here

*/
public class MXMLUintNodeTests extends MXMLExpressionNodeBaseTests
{
  private IMXMLUintNode getMXMLUintNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLUintNode node = (IMXMLUintNode)findFirstDescendantOfType(fileNode, IMXMLUintNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLUintID));
    assertThat("getName", node.getName(), is("uint"));
    return node;
  }
View Full Code Here

*/
public class MXMLDesignLayerNodeTests extends MXMLInstanceNodeTests
{
  private IMXMLDesignLayerNode getMXMLDesignLayerNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLDesignLayerNode node = (IMXMLDesignLayerNode)findFirstDescendantOfType(fileNode, IMXMLDesignLayerNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLDesignLayerID));
    assertThat("getName", node.getName(), is("DesignLayer"));
    return node;
  }
View Full Code Here

*/
public class MXMLRemoteObjectNodeTests extends MXMLInstanceNodeTests
{
  private IMXMLRemoteObjectNode getMXMLRemoteObjectNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLRemoteObjectNode node = (IMXMLRemoteObjectNode)findFirstDescendantOfType(fileNode, IMXMLRemoteObjectNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLRemoteObjectID));
    assertThat("getName", node.getName(), is("mx.rpc.remoting.mxml.RemoteObject"));
    return node;
  }
View Full Code Here

*/
public class MXMLStyleNodeTests extends MXMLNodeBaseTests
{
  private IMXMLStyleNode getMXMLStyleNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLStyleNode node = (IMXMLStyleNode)findFirstDescendantOfType(fileNode, IMXMLStyleNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLStyleID));
    assertThat("getName", node.getName(), is("Style"));
    return node;
  }
View Full Code Here

*/
public class MXMLScriptNodeTests extends MXMLNodeBaseTests
{
  private IMXMLScriptNode getMXMLScriptNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLScriptNode node = (IMXMLScriptNode)findFirstDescendantOfType(fileNode, IMXMLScriptNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLScriptID));
    assertThat("getName", node.getName(), is("Script"));
    return node;
  }
View Full Code Here

                cu = cu2;
            }
        }
   
        // Build the AST.
    IMXMLFileNode fileNode = null;
    try
    {
      fileNode = (IMXMLFileNode)cu.getSyntaxTreeRequest().get().getAST();
    }
    catch (InterruptedException e)
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.