// return this;
// }
@Override
public void createUpdaterMethod(Appendable builder, ListProperty property, int indentCount) throws IOException {
ListType type = property.getType();
Type itemType = type.getItemType();
// member variable
if (itemType instanceof UserDataType)
appendIndent(builder, indentCount).append("protected java.util.List<").append(itemType.getJavaType()).append(".Updater> ").append(property.getMemberVariableName()).append("Added = null;\n");
else
appendIndent(builder, indentCount).append("protected ").append(type.getJavaType()).append(" ").append(property.getMemberVariableName()).append("Added = null;\n");
// getCount
appendIndent(builder, indentCount).append("@Override public int get").append(property.getCamelCaseName()).append("Count() {\n");
appendIndent(builder, indentCount + 1).append("return _wrapper.").append(property.getMemberVariableName()).append(" != nullgetCount() || _builder.getCount();\n");
appendIndent(builder, indentCount).append("}\n");
// getList
if (itemType instanceof UserDataType)
appendIndent(builder, indentCount).append("@Override public java.util.List<").append(itemType.getJavaType()).append(".Builder> get").append(property.getCamelCaseName()).append("List() {\n");
else
appendIndent(builder, indentCount).append("@Override public ").append(type.getJavaType()).append(" get").append(property.getCamelCaseName()).append("List() {\n");
appendIndent(builder, indentCount + 1).append("return ").append(property.getMemberVariableName()).append(";\n");
appendIndent(builder, indentCount).append("}\n");
// get
if (itemType instanceof UserDataType)
appendIndent(builder, indentCount).append("@Override public ").append(type.getItemType().getJavaType()).append(".Builder get").append(property.getCamelCaseName()).append("(int index) {\n");
else
appendIndent(builder, indentCount).append("@Override public ").append(type.getItemType().getJavaType()).append(" get").append(property.getCamelCaseName()).append("(int index) {\n");
appendIndent(builder, indentCount + 1).append("return ").append(property.getMemberVariableName()).append(" == null ? null : ").append(property.getMemberVariableName()).append(".get(index);\n");
appendIndent(builder, indentCount).append("}\n");
// add
if (itemType instanceof UserDataType)