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

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


*/
public class MXMLLibraryNodeTests extends MXMLNodeBaseTests
  private IMXMLLibraryNode getMXMLLibraryNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLLibraryNode node = (IMXMLLibraryNode)findFirstDescendantOfType(fileNode, IMXMLLibraryNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLLibraryID));
    assertThat("getName", node.getName(), is("Library"));
    return node;
  }
View Full Code Here


*/
public class MXMLWebServiceNodeTests extends MXMLInstanceNodeTests
  private IMXMLWebServiceNode getMXMLWebServiceNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLWebServiceNode node = (IMXMLWebServiceNode)findFirstDescendantOfType(fileNode, IMXMLWebServiceNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLWebServiceID));
    assertThat("getName", node.getName(), is("mx.rpc.soap.mxml.WebService"));
    return node;
  }
View Full Code Here

*/
public class MXMLPrivateNodeTests extends MXMLNodeBaseTests
{
  private IMXMLPrivateNode getMXMLPrivateNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLPrivateNode node = (IMXMLPrivateNode)findFirstDescendantOfType(fileNode, IMXMLPrivateNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLPrivateID));
    assertThat("getName", node.getName(), is("Private"));
    assertThat("getChildCount", node.getChildCount(), is(0));
    return node;
View Full Code Here

*/
public class MXMLFunctionNodeTests extends MXMLExpressionNodeBaseTests
{
  private IMXMLFunctionNode getMXMLFunctionNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLFunctionNode node = (IMXMLFunctionNode)findFirstDescendantOfType(fileNode, IMXMLFunctionNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLFunctionID));
    assertThat("getName", node.getName(), is("Function"));
    return node;
  }
View Full Code Here

 

  public ICSSDocument getCSSNodeBase(String code) {
        final List<ICompilerProblem> problems = new ArrayList<ICompilerProblem>();

        IMXMLFileNode fileNode = super.getMXMLFileNode(getPrefix() + code + getPostfix());
    IMXMLStyleNode styleNode = (IMXMLStyleNode) findFirstDescendantOfType(fileNode, IMXMLStyleNode.class);
   
    assertNotNull("styleNode", styleNode );   
         
    return styleNode.getCSSDocument(problems);
View Full Code Here

*/
public class MXMLNumberNodeTests extends MXMLExpressionNodeBaseTests
{
  private IMXMLNumberNode getMXMLNumberNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLNumberNode node = (IMXMLNumberNode)findFirstDescendantOfType(fileNode, IMXMLNumberNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLNumberID));
    assertThat("getName", node.getName(), is("Number"));
    return node;
  }
View Full Code Here

*/
public class MXMLIntNodeTests extends MXMLExpressionNodeBaseTests
{
  private IMXMLIntNode getMXMLIntNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLIntNode node = (IMXMLIntNode)findFirstDescendantOfType(fileNode, IMXMLIntNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLIntID));
    assertThat("getName", node.getName(), is("int"));
    return node;
  }
View Full Code Here

    @Override
    public void visitDocument(IMXMLDocumentNode node)
    {
        debug("visitDocument()");

        IMXMLFileNode fnode = (IMXMLFileNode) node.getParent();
       
        mxmlEmitter.emitDocumentHeader(fnode);
        visitClassDefinition(node);
        mxmlEmitter.emitDocumentFooter(fnode);
    }
View Full Code Here

*/
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;
  }
View Full Code Here

        return mxml;
    }
 
    private IMXMLDefinitionNode getMXMLDefinitionNode(String[] code)
  {
    IMXMLFileNode fileNode = getMXMLFileNode(code);
    IMXMLDefinitionNode node = (IMXMLDefinitionNode)findFirstDescendantOfType(fileNode, IMXMLDefinitionNode.class);
    assertThat("getNodeID", node.getNodeID(), is(ASTNodeID.MXMLDefinitionID));
    assertThat("getName", node.getName(), is("Definition"));
    return node;
  }
View Full Code Here

TOP

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

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.