Пример #1
0
 protected CharSequence _generateFieldForType(final UserType type) {
   StringConcatenation _builder = new StringConcatenation();
   _builder.append("private ");
   String _signature = ModelExtensions.signature(type);
   _builder.append(_signature, "");
   _builder.append(" ");
   String _signature_1 = ModelExtensions.signature(type);
   String _camelize = Strings.camelize(_signature_1);
   String _escapeReserved = ModelExtensions.escapeReserved(_camelize);
   _builder.append(_escapeReserved, "");
   _builder.append(";");
   _builder.newLineIfNotEmpty();
   return _builder;
 }
Пример #2
0
 protected CharSequence _generateGetterForType(final UserType type) {
   StringConcatenation _builder = new StringConcatenation();
   _builder.append("public ");
   String _signature = ModelExtensions.signature(type);
   _builder.append(_signature, "");
   _builder.append(" get");
   String _signature_1 = ModelExtensions.signature(type);
   String _pascalize = Strings.pascalize(_signature_1);
   _builder.append(_pascalize, "");
   _builder.append("(){");
   _builder.newLineIfNotEmpty();
   _builder.append("\t");
   _builder.append("return this.");
   String _signature_2 = ModelExtensions.signature(type);
   String _camelize = Strings.camelize(_signature_2);
   String _escapeReserved = ModelExtensions.escapeReserved(_camelize);
   _builder.append(_escapeReserved, "\t");
   _builder.append(";");
   _builder.newLineIfNotEmpty();
   _builder.append("}");
   _builder.newLine();
   return _builder;
 }