Package org.perl6.metamodel

Examples of org.perl6.metamodel.Method.call()


        assertFalse(foo.isa("Bar"));
    }

    public void testCan () {
        Method bar = foo.can("bar");
        assertEquals(bar.call(foo, new ArrayList()), "Foo.bar");
       
        assertNull(foo.can("wysiwyg"));
    }
}
View Full Code Here


    }

    public void testCan () {
       
        Method m = foo.can("baz");
        assertEquals(m.call(foo, new ArrayList()),"Foo.bar");
       
        assertNull(foo.can("sglerbadck"));
    }

}
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.