add class method to generate writer methods for dsl