Generates getter and setter methods for a class property.