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

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


public class MXMLUintNodeTests extends MXMLExpressionNodeBaseTests
{
  private IMXMLUintNode getMXMLUintNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLUintNode node = (IMXMLUintNode)findFirstDescendantOfType(fileNode, IMXMLUintNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLUintID));
    assertThat("getName", node.getName(), is("uint"));
    return node;
  }
View Full Code Here


  {
    String[] code = new String[]
    {
        "<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></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> \t\r\n</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>0</fx:uint>"
    };
    IMXMLUintNode node = getMXMLUintNode(code);
    assertThat("getValue", node.getValue(), is(0L));
    testExpressionLocation(node, 9, 10);
  }
View Full Code Here

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

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

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

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

  {
    String[] code = new String[]
    {
        "<fx:uint>#0</fx:uint>"
    };
    IMXMLUintNode node = getMXMLUintNode(code);
    assertThat("getValue", node.getValue(), is(0L));
    testExpressionLocation(node, 9, 11);   
  }
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.