Generating setters and getters for public member fields of classes