<RegExp>
37383940414243444546
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; }
5051525354555657
{ String[] code = new String[] { "<fx:RegExp/>" }; IMXMLRegExpNode node = getMXMLRegExpNode(code); assertThat("getExpressionNode", node.getExpressionNode(), is((IASNode)null)); }
6162636465666768
{ String[] code = new String[] { "<fx:RegExp></fx:RegExp>" }; IMXMLRegExpNode node = getMXMLRegExpNode(code); assertThat("getExpressionNode", node.getExpressionNode(), is((IASNode)null)); }
7273747576777879
{ String[] code = new String[] { "<fx:RegExp> \t\r\n</fx:RegExp>" }; IMXMLRegExpNode node = getMXMLRegExpNode(code); assertThat("getExpressionNode", node.getExpressionNode(), is((IASNode)null)); }
8485868788899091929394
{ 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)); }