Examples of IMXMLBooleanNode


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

public class MXMLBooleanNodeTests extends MXMLExpressionNodeBaseTests
  private IMXMLBooleanNode getMXMLBooleanNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLBooleanNode node = (IMXMLBooleanNode)findFirstDescendantOfType(fileNode, IMXMLBooleanNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLBooleanID));
    assertThat("getName", node.getName(), is("Boolean"));
    return node;
  }

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

  {
    String[] code = new String[]
    {
      "<fx:Boolean/>"
    };
    IMXMLBooleanNode node = getMXMLBooleanNode(code);
    assertThat("getValue", node.getValue(), is(false));
    //assertThat("getExpressionNode", node.getExpressionNode(), is((IASNode)null));
  }

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

  {
    String[] code = new String[]
    {
      "<fx:Boolean></fx:Boolean>"
    };
    IMXMLBooleanNode node = getMXMLBooleanNode(code);
    assertThat("getValue", node.getValue(), is(false));
    //assertThat("getExpressionNode", node.getExpressionNode(), is((IASNode)null));
  }

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

  {
    String[] code = new String[]
    {
      "<fx:Boolean> \t\r\n</fx:Boolean>"
    };
    IMXMLBooleanNode node = getMXMLBooleanNode(code);
    assertThat("getValue", node.getValue(), is(false));
    //assertThat("getExpressionNode", node.getExpressionNode(), is((IASNode)null));
  }

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

  {
    String[] code = new String[]
    {
      "<fx:Boolean>false</fx:Boolean>"
    };
    IMXMLBooleanNode node = getMXMLBooleanNode(code);
    assertThat("getValue", node.getValue(), is(false));
    testExpressionLocation(node, 12, 17);
  }

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

  {
    String[] code = new String[]
    {
      "<fx:Boolean>true</fx:Boolean>"
    };
    IMXMLBooleanNode node = getMXMLBooleanNode(code);
    assertThat("getValue", node.getValue(), is(true));
    testExpressionLocation(node, 12, 16);
  }

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

  {
    String[] code = new String[]
    {
      "<fx:Boolean>FaLsE</fx:Boolean>"
    };
    IMXMLBooleanNode node = getMXMLBooleanNode(code);
    assertThat("getValue", node.getValue(), is(false));
    testExpressionLocation(node, 12, 17);
  }

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

  {
    String[] code = new String[]
    {
      "<fx:Boolean>TruE</fx:Boolean>"
    };
    IMXMLBooleanNode node = getMXMLBooleanNode(code);
    assertThat("getValue", node.getValue(), is(true));
    testExpressionLocation(node, 12, 16);
  }

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

  {
    String[] code = new String []
    {
      "<fx:Boolean> false </fx:Boolean>"
    };
    IMXMLBooleanNode node = getMXMLBooleanNode(code);
    assertThat("getValue", node.getValue(), is(false));
    //testExpressionLocation(node, 13, 18);  // location of the MXMLLiteralNode should not include the whitespace
  }

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

  {
    String[] code = new String[]
    {
      "<fx:Boolean> true </fx:Boolean>"
    };
    IMXMLBooleanNode node = getMXMLBooleanNode(code);
    assertThat("getValue", node.getValue(), is(true));
    //testExpressionLocation(node, 13, 17); // location of the MXMLLiteralNode should not include the whitespace
  }
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.