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

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


public class MXMLClassNodeTests extends MXMLExpressionNodeBaseTests
{
  private IMXMLClassNode getMXMLClassNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLClassNode node = (IMXMLClassNode)findFirstDescendantOfType(fileNode, IMXMLClassNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLClassID));
    assertThat("getName", node.getName(), is("Class"));
    return node;
  }
View Full Code Here


  {
    String[] code = new String[]
    {
      "<fx:Class/>"
    };
    IMXMLClassNode node = getMXMLClassNode(code);
    assertThat("getValue", node.getValue(project), is((ITypeDefinition)null));
    //assertThat("getExpressionNode", node.getExpressionNode(), is((IASNode)null));
  }
View Full Code Here

  {
    String[] code = new String[]
    {
      "<fx:Class></fx:Class>"
    };
    IMXMLClassNode node = getMXMLClassNode(code);
    assertThat("getValue", node.getValue(project), is((ITypeDefinition)null));
    //assertThat("getExpressionNode", node.getExpressionNode(), is((IASNode)null));
  }
View Full Code Here

  {
    String[] code = new String[]
    {
      "<fx:Class> \t\r\n</fx:Class>"
    };
    IMXMLClassNode node = getMXMLClassNode(code);
    assertThat("getValue", node.getValue(project), is((ITypeDefinition)null));
    //assertThat("getExpressionNode", node.getExpressionNode(), is((IASNode)null));
  }
View Full Code Here

  {
    String[] code = new String[]
    {
      "<fx:Class>flash.display.Sprite</fx:Class>"
    };
    IMXMLClassNode node = getMXMLClassNode(code);
    assertThat("getValue", node.getValue(project).getQualifiedName(), is("flash.display.Sprite"));
    //assertThat("getExpressionNode", node.getExpressionNode(), is((IASNode)null));
  }
View Full Code Here

  {
    String[] code = new String[]
    {
      "<fx:Class>{a.b}</fx:Class>"
    };
    IMXMLClassNode node = getMXMLClassNode(code);
    assertThat("databinding node", node.getExpressionNode().getNodeID(), is(ASTNodeID.MXMLDataBindingID));
    testExpressionLocation(node, 10, 15);
    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.IMXMLClassNode

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.