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

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


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


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

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

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

  {
    String[] code = new String[]
    {
      "<fx:int>-0X80000000</fx:int>"
    };
    IMXMLIntNode node = getMXMLIntNode(code);
    assertThat("getValue", node.getValue(), is(-2147483648));
    testExpressionLocation(node, 8, 19);
  }
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>#7FFFFFFF</fx:int>"
    };
    IMXMLIntNode node = getMXMLIntNode(code);
    assertThat("getValue", node.getValue(), is(2147483647));
    testExpressionLocation(node, 8, 17);   
  }
View Full Code Here

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

  {
    String[] code = new String[]
    {
      "<fx:int> -123 </fx:int>"
    };
    IMXMLIntNode node = getMXMLIntNode(code);
    assertThat("getValue", node.getValue(), is(-123));
    //testExpressionLocation(node, 9, 13); // location of the MXMLLiteralNode should not include the whitespace
  }
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.