def get_methods(self):
    if (self.methods is None):
        self.methods = []
        self.num_direct_methods = len(self.class_def.class_data.direct_methods)
        for encoded_method in self.class_def.class_data.direct_methods:
            self.methods.append(DexMethod(self, encoded_method, False))
        for encoded_method in self.class_def.class_data.virtual_methods:
            self.methods.append(DexMethod(self, encoded_method, True))
    return self.methods
def get_methods(self):
    if (self.methods is None):
        self.methods = []
        self.num_direct_methods = len(self.class_def.class_data.direct_methods)
        for encoded_method in self.class_def.class_data.direct_methods:
            self.methods.append(DexMethod(self, encoded_method, False))
        for encoded_method in self.class_def.class_data.virtual_methods:
            self.methods.append(DexMethod(self, encoded_method, True))
    return self.methods