protected String generateProducesAnnotation(final Method method) { String _xblockexpression = null; { final TypedResponse response = this.getOKResponse(method); StringConcatenation _builder = new StringConcatenation(); { if ((((response != null) && (!response.getMediaTypes().isEmpty())) && this.hasDataType(response))) { _builder.newLineIfNotEmpty(); _builder.append("@"); String _typeName = this.getTypeName(Produces.class); _builder.append(_typeName); _builder.append("("); final Function1<MediaType, String> _function = (MediaType it) -> { return it.getName(); }; String _annotationParameter = this.toAnnotationParameter(ListExtensions.<MediaType, String>map(response.getMediaTypes(), _function)); _builder.append(_annotationParameter); _builder.append(")"); _builder.newLineIfNotEmpty(); _builder.append("\t\t"); } } _xblockexpression = _builder.toString(); } return _xblockexpression; }
final Example example = IterableExtensions.<Example>head(rapidResponse.getAllExamples()); if (((example != null) && (example.getBody() != null))) { final MediaType type = IterableExtensions.<MediaType>head(rapidResponse.getMediaTypes()); if ((type != null)) { swaggerResponse.example(IterableExtensions.<MediaType>head(rapidResponse.getMediaTypes()).getName(), this.renderExample(example.getBody(), type.getName()));
method.getResponses().forEach(_function_2); final Function1<TypedResponse, EList<MediaType>> _function_3 = (TypedResponse it) -> { return it.getMediaTypes(); }; final Function1<MediaType, String> _function_4 = (MediaType it) -> {
_builder.append("<table class=\"table table-condensed\">"); _builder.newLine(); CharSequence _generateMediaTypes = this.generateMediaTypes(response.getMediaTypes()); _builder.append(_generateMediaTypes); _builder.newLineIfNotEmpty();