internal virtual void GenGetSet(CodeBuffer cb, string fname) { cb.Append("public " + this.name + " get" + JType.ToCamelCase(fname) + "() {\n"); cb.Append("return " + fname + ";\n"); cb.Append("}\n"); cb.Append("public void set" + JType.ToCamelCase(fname) + "(final " + this.name + " " + fname + ") {\n"); cb.Append("this." + fname + "=" + fname + ";\n"); cb.Append("}\n"); }
internal virtual void GenGetSet(CodeBuffer cb, string fname) { cb.Append("virtual " + this.name + " get" + JType.ToCamelCase(fname) + "() const {\n" ); cb.Append("return " + fname + ";\n"); cb.Append("}\n"); cb.Append("virtual void set" + JType.ToCamelCase(fname) + "(" + this.name + " m_) {\n" ); cb.Append(fname + "=m_;\n"); cb.Append("}\n"); }