Package org.perl6.metamodel

Examples of org.perl6.metamodel.MetaClass.superclasses()


    public void testDispatcher () {
        MetaClass a = new MetaClass("A");
        MetaClass b = new MetaClass("B");
        ArrayList bsup = new ArrayList();
        bsup.add(a);
        b.superclasses(bsup);
       
        MetaClass c = new MetaClass("C");
        ArrayList csup = new ArrayList();
        csup.add(a);
        c.superclasses(csup);
View Full Code Here


        b.superclasses(bsup);
       
        MetaClass c = new MetaClass("C");
        ArrayList csup = new ArrayList();
        csup.add(a);
        c.superclasses(csup);
        MetaClass d = new MetaClass("D");
        ArrayList dsup = new ArrayList();
        dsup.add(b);
        dsup.add(c);
        d.superclasses(dsup);
View Full Code Here

        c.superclasses(csup);
        MetaClass d = new MetaClass("D");
        ArrayList dsup = new ArrayList();
        dsup.add(b);
        dsup.add(c);
        d.superclasses(dsup);

        Dispatcher dispatcher = d.dispatcher(":canonical");
       
        assertEquals(dispatcher.getClass().getName(), "org.perl6.metamodel.metaclass.Dispatcher");
       
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.