Esempio n. 1
0
    def new_system_class(self):
        # Allocate the new system class
        system_class = Class(self, 0, Class(self, 0, None))

        # Setup the metaclass hierarchy
        system_class.get_class(self).set_class(self.metaclassClass)
        return system_class
Esempio n. 2
0
    def new_metaclass_class(self):
        # Allocate the metaclass classes
        result = Class(self, 0, Class(self, 0, None))

        # Setup the metaclass hierarchy
        result.get_class(self).set_class(result)
        return result
Esempio n. 3
0
    def new_system_class(self):
        # Allocate the new system class
        system_class = Class(self, 0, Class(self, 0, None))

        # Setup the metaclass hierarchy
        system_class.get_class(self).set_class(self.metaclassClass)
        return system_class
Esempio n. 4
0
    def new_metaclass_class(self):
        # Allocate the metaclass classes
        result = Class(self, 0, Class(self, 0, None))

        # Setup the metaclass hierarchy
        result.get_class(self).set_class(result)
        return result
Esempio n. 5
0
    def new_system_class(self):
        # Allocate the new system class
        system_class = Class(self)

        # Setup the metaclass hierarchy
        system_class.set_class(Class(self))
        system_class.get_class(self).set_class(self.metaclassClass)

        # Return the freshly allocated system class
        return system_class
Esempio n. 6
0
    def new_metaclass_class(self):
        # Allocate the metaclass classes
        result = Class(self)
        result.set_class(Class(self))

        # Setup the metaclass hierarchy
        result.get_class(self).set_class(result)

        # Return the freshly allocated metaclass class
        return result