def get_methods(self):
        """
        Return direct and virtual methods

        :rtype: a list of :class:`EncodedMethod` objects
        """
        return [x
                for x in self.direct_methods] + [x
                                                 for x in self.virtual_methods]