}
}
Iterable<Route> _routes_1 = RouteJvmModelInferrer.this.routes(model);
final Function1<Route, Boolean> _function_2 = new Function1<Route, Boolean>() {
public Boolean apply(final Route it) {
RequestType _requestType = it.getRequestType();
return Boolean.valueOf(Objects.equal(_requestType, RequestType.GET));
}
};
final Iterable<Route> getRoutes = IterableExtensions.<Route>filter(_routes_1, _function_2);
boolean _isEmpty = IterableExtensions.isEmpty(getRoutes);
boolean _not = (!_isEmpty);
if (_not) {
EList<JvmMember> _members_1 = it.getMembers();
JvmOperation _requestHandlerMethod = RouteJvmModelInferrer.this.toRequestHandlerMethod(model, "doGet", getRoutes);
RouteJvmModelInferrer.this._jvmTypesBuilder.<JvmOperation>operator_add(_members_1, _requestHandlerMethod);
}
Iterable<Route> _routes_2 = RouteJvmModelInferrer.this.routes(model);
final Function1<Route, Boolean> _function_3 = new Function1<Route, Boolean>() {
public Boolean apply(final Route it) {
RequestType _requestType = it.getRequestType();
return Boolean.valueOf(Objects.equal(_requestType, RequestType.POST));
}
};
final Iterable<Route> postRoutes = IterableExtensions.<Route>filter(_routes_2, _function_3);
boolean _isEmpty_1 = IterableExtensions.isEmpty(postRoutes);
boolean _not_1 = (!_isEmpty_1);
if (_not_1) {
EList<JvmMember> _members_2 = it.getMembers();
JvmOperation _requestHandlerMethod_1 = RouteJvmModelInferrer.this.toRequestHandlerMethod(model, "doPost", postRoutes);
RouteJvmModelInferrer.this._jvmTypesBuilder.<JvmOperation>operator_add(_members_2, _requestHandlerMethod_1);
}
Iterable<Route> _routes_3 = RouteJvmModelInferrer.this.routes(model);
final Function1<Route, Boolean> _function_4 = new Function1<Route, Boolean>() {
public Boolean apply(final Route it) {
RequestType _requestType = it.getRequestType();
return Boolean.valueOf(Objects.equal(_requestType, RequestType.PUT));
}
};
final Iterable<Route> putRoutes = IterableExtensions.<Route>filter(_routes_3, _function_4);
boolean _isEmpty_2 = IterableExtensions.isEmpty(putRoutes);
boolean _not_2 = (!_isEmpty_2);
if (_not_2) {
EList<JvmMember> _members_3 = it.getMembers();
JvmOperation _requestHandlerMethod_2 = RouteJvmModelInferrer.this.toRequestHandlerMethod(model, "doPut", putRoutes);
RouteJvmModelInferrer.this._jvmTypesBuilder.<JvmOperation>operator_add(_members_3, _requestHandlerMethod_2);
}
Iterable<Route> _routes_4 = RouteJvmModelInferrer.this.routes(model);
final Function1<Route, Boolean> _function_5 = new Function1<Route, Boolean>() {
public Boolean apply(final Route it) {
RequestType _requestType = it.getRequestType();
return Boolean.valueOf(Objects.equal(_requestType, RequestType.DELETE));
}
};
final Iterable<Route> deleteRoutes = IterableExtensions.<Route>filter(_routes_4, _function_5);
boolean _isEmpty_3 = IterableExtensions.isEmpty(deleteRoutes);
boolean _not_3 = (!_isEmpty_3);
if (_not_3) {
EList<JvmMember> _members_4 = it.getMembers();
JvmOperation _requestHandlerMethod_3 = RouteJvmModelInferrer.this.toRequestHandlerMethod(model, "doDelete", deleteRoutes);
RouteJvmModelInferrer.this._jvmTypesBuilder.<JvmOperation>operator_add(_members_4, _requestHandlerMethod_3);
}
Iterable<Route> _routes_5 = RouteJvmModelInferrer.this.routes(model);
final Function1<Route, Boolean> _function_6 = new Function1<Route, Boolean>() {
public Boolean apply(final Route it) {
RequestType _requestType = it.getRequestType();
return Boolean.valueOf(Objects.equal(_requestType, RequestType.HEAD));
}
};
final Iterable<Route> headRoutes = IterableExtensions.<Route>filter(_routes_5, _function_6);
boolean _isEmpty_4 = IterableExtensions.isEmpty(headRoutes);