Examples of IInterfaceNode


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

    }

    @Test
    public void testQualifiedExtendsMultiple()
    {
        IInterfaceNode node = getInterfaceNode("public interface IA extends foo.bar.IB, baz.goo.IC, foo.ID {}");
        asBlockWalker.visitInterface(node);
        assertOut("public interface IA extends foo.bar.IB, baz.goo.IC, foo.ID {\n}");
    }
View Full Code Here

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

    }

    @Test
    public void testAccessors()
    {
        IInterfaceNode node = getInterfaceNode("public interface IA {"
                + "function get foo1():Object;"
                + "function set foo1(value:Object):void;}");
        asBlockWalker.visitInterface(node);
        assertOut("public interface IA {\n\tfunction get foo1():Object;\n\t"
                + "function set foo1(value:Object):void;\n}");
View Full Code Here

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

    }

    @Test
    public void testMethods()
    {
        IInterfaceNode node = getInterfaceNode("public interface IA {"
                + "function foo1():Object;"
                + "function foo1(value:Object):void;}");
        asBlockWalker.visitInterface(node);
        assertOut("public interface IA {\n\tfunction foo1():Object;\n\t"
                + "function foo1(value:Object):void;\n}");
View Full Code Here

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

    }

    @Test
    public void testAccessorsMethods()
    {
        IInterfaceNode node = getInterfaceNode("public interface IA {"
                + "function get foo1():Object;"
                + "function set foo1(value:Object):void;"
                + "function baz1():Object;"
                + "function baz2(value:Object):void;}");
        asBlockWalker.visitInterface(node);
View Full Code Here

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

    @Override
    @Test
    public void testAccessors()
    {
        IInterfaceNode node = getInterfaceNode("public interface IA {"
                + "function get foo1():Object;"
                + "function set foo1(value:Object):void;}");
        asBlockWalker.visitInterface(node);
        assertOut("/**\n * @interface\n */\nIA = function() {\n};\n\n\n/**\n * @return {Object}\n */\nIA.prototype.get_foo1 = function() {};\n\n\n/**\n * @param {Object} value\n */\nIA.prototype.set_foo1 = function(value) {};");
    }
View Full Code Here

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

    @Override
    @Test
    public void testMethods()
    {
        IInterfaceNode node = getInterfaceNode("public interface IA {"
                + "function baz1():Object;"
                + "function baz2(value:Object):void;}");
        asBlockWalker.visitInterface(node);
        assertOut("/**\n * @interface\n */\nIA = function() {\n};\n\n\n/**\n * @return {Object}\n */\nIA.prototype.baz1 = function() {};\n\n\n/**\n * @param {Object} value\n */\nIA.prototype.baz2 = function(value) {};");
    }
View Full Code Here

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

    @Override
    @Test
    public void testAccessorsMethods()
    {
        IInterfaceNode node = getInterfaceNode("public interface IA {"
                + "function get foo1():Object;"
                + "function set foo1(value:Object):void;"
                + "function baz1():Object;"
                + "function baz2(value:Object):void;}");
        asBlockWalker.visitInterface(node);
View Full Code Here

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

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

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

  @Ignore
  @Override
    @Test
    public void testSimple()
    {
        IInterfaceNode node = getInterfaceNode("public interface IA{}");
        visitor.visitInterface(node);
        assertOut("");
    }
View Full Code Here

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

  @Ignore
  @Override
    @Test
    public void testSimpleExtends()
    {
        IInterfaceNode node = getInterfaceNode("public interface IA extends IB{}");
        visitor.visitInterface(node);
        assertOut("");
    }
View Full Code Here
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.