getDeclaredMethods

This method returns both the explicit methods declared in the record and the implicit getter methods for the record parameters. This is done for consistency across the various models.