Examples of IMXMLStringNode


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

        if (namePropertyNode != null)
        {
            final IMXMLInstanceNode namePropertyValueNode = namePropertyNode.getInstanceNode();
            if (namePropertyValueNode instanceof IMXMLStringNode)
            {
                final IMXMLStringNode stringNode = (IMXMLStringNode)namePropertyValueNode;
                operationName = stringNode.getValue();
            }
        }

        if (operationName == null)
        {
View Full Code Here

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

        if (namePropertyNode != null)
        {
            final IMXMLInstanceNode namePropertyValueNode = namePropertyNode.getInstanceNode();
            if (namePropertyValueNode instanceof IMXMLStringNode)
            {
                final IMXMLStringNode stringNode = (IMXMLStringNode)namePropertyValueNode;
                methodName = stringNode.getValue();
            }
        }

        if (methodName == null)
        {
View Full Code Here

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

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

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

  {
    String[] code = new String[]
    {
        "<fx:String/>"
    };
    IMXMLStringNode node = getMXMLStringNode(code);
    assertThat("getValue", node.getValue(), is("")); // was null in old compiler, but this is inconsistent with an empty String attribute
    //assertThat("getExpressionNode", node.getExpressionNode(), is((IASNode)null));
  }
View Full Code Here

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

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

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

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

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

  {
    String[] code = new String[]
    {
        "<fx:String>abc</fx:String>"
    };
    IMXMLStringNode node = getMXMLStringNode(code);
    assertThat("getValue", node.getValue(), is("abc"));
    testExpressionLocation(node, 11, 14);
  }
View Full Code Here

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

  {
    String[] code = new String[]
    {
        "<fx:String> a b c </fx:String>"
    };
    IMXMLStringNode node = getMXMLStringNode(code);
    assertThat("getValue", node.getValue(), is(" a b c "));
    testExpressionLocation(node, 11, 18);
  }
View Full Code Here

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

  {
    String[] code = new String[]
    {
        "<fx:String>123</fx:String>"
    };
    IMXMLStringNode node = getMXMLStringNode(code);
    assertThat("getValue", node.getValue(), is("123"));
    testExpressionLocation(node, 11, 14);
  }
View Full Code Here

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

  {
    String[] code = new String[]
    {
        "<fx:String>true</fx:String>"
    };
    IMXMLStringNode node = getMXMLStringNode(code);
    assertThat("getValue", node.getValue(), is("true"));
    testExpressionLocation(node, 11, 15);
  }
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.