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

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


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


  {
    String code[] = new String[]
    {
      "<fx:int>{a.b}</fx:int>"
    };
    IMXMLIntNode node = getMXMLIntNode(code);
    assertThat("databinding node", node.getExpressionNode().getNodeID(), is(ASTNodeID.MXMLDataBindingID));
    testExpressionLocation(node, 8, 13);
    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

public class MXMLIntNodeTests extends MXMLExpressionNodeBaseTests
{
  private IMXMLIntNode getMXMLIntNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLIntNode node = (IMXMLIntNode)findFirstDescendantOfType(fileNode, IMXMLIntNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLIntID));
    assertThat("getName", node.getName(), is("int"));
    return node;
  }
View Full Code Here

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

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

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

  {
    String[] code = new String[]
    {
      "<fx:int>0</fx:int>"
    };
    IMXMLIntNode node = getMXMLIntNode(code);
    assertThat("getValue", node.getValue(), is(0));
    testExpressionLocation(node, 8, 9);
  }
View Full Code Here

  {
    String code[] = new String[]
    {
      "<fx:int>-0</fx:int>"
    };
    IMXMLIntNode node = getMXMLIntNode(code);
    assertThat("getValue", node.getValue(), is(0));
    testExpressionLocation(node, 8, 10);
  }
View Full Code Here

  {
    String[] code = new String[]
    {
      "<fx:int>1</fx:int>"
    };
    IMXMLIntNode node = getMXMLIntNode(code);
    assertThat("getValue", node.getValue(), is(1));
    testExpressionLocation(node, 8, 9);
  }
View Full Code Here

  {
    String[] code = new String[]
    {
      "<fx:int>-1</fx:int>"
    };
    IMXMLIntNode node = getMXMLIntNode(code);
    assertThat("getValue", node.getValue(), is(-1));
    testExpressionLocation(node, 8, 10);
  }
View Full Code Here

TOP

Related Classes of org.apache.flex.compiler.tree.mxml.IMXMLIntNode

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.