Automatic code generation for parameter class