Examples of IMXMLRegExpNode


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

public class MXMLRegExpNodeTests extends MXMLExpressionNodeBaseTests
{
  private IMXMLRegExpNode getMXMLRegExpNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLRegExpNode node = (IMXMLRegExpNode)findFirstDescendantOfType(fileNode, IMXMLRegExpNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLRegExpID));
    assertThat("getName", node.getName(), is("RegExp"));
    return node;
  }
View Full Code Here

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

  {
    String[] code = new String[]
    {
      "<fx:RegExp/>"
    };
    IMXMLRegExpNode node = getMXMLRegExpNode(code);
    assertThat("getExpressionNode", node.getExpressionNode(), is((IASNode)null));
  }
View Full Code Here

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

  {
    String[] code = new String[]
    {
      "<fx:RegExp></fx:RegExp>"
    };
    IMXMLRegExpNode node = getMXMLRegExpNode(code);
    assertThat("getExpressionNode", node.getExpressionNode(), is((IASNode)null));
  }
View Full Code Here

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

  {
    String[] code = new String[]
    {
      "<fx:RegExp> \t\r\n</fx:RegExp>"
    };
    IMXMLRegExpNode node = getMXMLRegExpNode(code);
    assertThat("getExpressionNode", node.getExpressionNode(), is((IASNode)null));
  }
View Full Code Here

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

  {
    String[] code = new String[]
    {
      "<fx:RegExp>{a.b}</fx:RegExp>"
    };
    IMXMLRegExpNode node = getMXMLRegExpNode(code);
    assertThat("databinding node", node.getExpressionNode().getNodeID(), is(ASTNodeID.MXMLDataBindingID));
    testExpressionLocation(node, 11, 16);
    assertThat("databinding node child count", node.getExpressionNode().getChildCount(), is(1));
    assertThat("identifier node", node.getExpressionNode().getChild(0).getNodeID(), is(ASTNodeID.MemberAccessExpressionID));
  }
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.