Package org.apache.flex.compiler.tree.as

Examples of org.apache.flex.compiler.tree.as.INamespaceNode


    //--------------------------------------------------------------------------

    @Test
    public void testNamespace()
    {
        INamespaceNode node = getNamespace("namespace ns = \"http://whatever\";");
        asBlockWalker.visitNamespace(node);
        assertOut("namespace ns = \"http://whatever\"");
    }
View Full Code Here


    }

    @Test
    public void testNamespace_public()
    {
        INamespaceNode node = getNamespace("public namespace ns = \"http://whatever\";");
        asBlockWalker.visitNamespace(node);
        assertOut("public namespace ns = \"http://whatever\"");
    }
View Full Code Here

    }

    @Test
    public void testNamespace_protected()
    {
        INamespaceNode node = getNamespace("protected namespace ns = \"http://whatever\";");
        asBlockWalker.visitNamespace(node);
        assertOut("protected namespace ns = \"http://whatever\"");
    }
View Full Code Here

    protected INamespaceNode getNamespace(String code)
    {
        String source = "package {public class A {" + code + "}}";
        IFileNode node = compileAS(source);
        INamespaceNode child = (INamespaceNode) findFirstDescendantOfType(node,
                INamespaceNode.class);
        return child;
    }
View Full Code Here

    //--------------------------------------------------------------------------

    @Test
    public void testNamespace()
    {
        INamespaceNode node = getNamespace("namespace ns = \"http://whatever\";");
        visitor.visitNamespace(node);
        assertOut("namespace ns = \"http://whatever\"");
    }
View Full Code Here

    }

    @Test
    public void testNamespace_public()
    {
        INamespaceNode node = getNamespace("public namespace ns = \"http://whatever\";");
        visitor.visitNamespace(node);
        assertOut("public namespace ns = \"http://whatever\"");
    }
View Full Code Here

    }

    @Test
    public void testNamespace_protected()
    {
        INamespaceNode node = getNamespace("protected namespace ns = \"http://whatever\";");
        visitor.visitNamespace(node);
        assertOut("protected namespace ns = \"http://whatever\"");
    }
View Full Code Here

   
    protected INamespaceNode getNamespace(String code)
    {
        String source = "package {public class A {" + code + "}}";
        IFileNode node = getFileNode(source);
        INamespaceNode child = (INamespaceNode) findFirstDescendantOfType(node,
                INamespaceNode.class);
        return child;
    }
View Full Code Here

TOP

Related Classes of org.apache.flex.compiler.tree.as.INamespaceNode

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.