addBeanField(name, TClassType.getClass(type));
}
public void addBeanField(String name, TClassType type)
{
classType.getFields().add(new TField(classType, name, type, Modifier.PRIVATE | Modifier.FINAL));
TMethod getterMethod = new TMethod(classType, RenderUtil.getGetterName(type, name), type, Modifier.PUBLIC);
getterMethod.setMethodContents("return this." + name + ";\n");
classType.getMethods().add(getterMethod);