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

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


  {
    String[] code = new String[]
    {
        "<fx:uint>#7FFFFFFF</fx:uint>"
    };
    IMXMLUintNode node = getMXMLUintNode(code);
    assertThat("getValue", node.getValue(), is(2147483647L));
    testExpressionLocation(node, 9, 18);   
  }
View Full Code Here


  {
    String[] code = new String[]
    {
        "<fx:uint> 123 </fx:uint>"
    };
    IMXMLUintNode node = getMXMLUintNode(code);
    assertThat("getValue", node.getValue(), is(123L));
    //testExpressionLocation(node, 9, 13); // location of the MXMLLiteralNode should not include the whitespace
  }
View Full Code Here

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

  {
    String[] code = new String[]
    {
        "<fx:uint>{a.b}</fx:uint>"
    };
    IMXMLUintNode node = getMXMLUintNode(code);
    assertThat("databinding node", node.getExpressionNode().getNodeID(), is(ASTNodeID.MXMLDataBindingID));
    testExpressionLocation(node, 9, 14);
    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

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

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.