@Override public TypeMirror getReturnType() { if (this.typeMirror == null) { this.typeMirror = TypeMirrorDecorator.decorate(delegate.getReturnType(), env); ((DecoratedTypeMirror)this.typeMirror).setDeferredDocComment(new ReturnDocComment(this)); } return this.typeMirror; }
@Override public String get(JavaDocTagHandler tagHandler) { JavaDoc.JavaDocTagList tagList = this.executableElement.getJavaDoc(tagHandler).get("returnWrapped"); String returnWrapped = tagList == null || tagList.isEmpty() ? null : tagList.get(0); if (returnWrapped != null) { int firstSpace = JavaDoc.indexOfFirstWhitespace(returnWrapped); if (firstSpace > 1) { if (returnWrapped.length() > firstSpace + 1) { String wrappedDoc = returnWrapped.substring(firstSpace + 1).trim(); if (!wrappedDoc.isEmpty()) { return wrappedDoc; } } } } return super.get(tagHandler); } }
@Override public TypeMirror getReturnType() { if (this.typeMirror == null) { this.typeMirror = TypeMirrorDecorator.decorate(delegate.getReturnType(), env); ((DecoratedTypeMirror)this.typeMirror).setDeferredDocComment(new ReturnDocComment(this)); } return this.typeMirror; }
@Override public String get(JavaDocTagHandler tagHandler) { JavaDoc.JavaDocTagList tagList = this.executableElement.getJavaDoc(tagHandler).get("returnWrapped"); String returnWrapped = tagList == null || tagList.isEmpty() ? null : tagList.get(0); if (returnWrapped != null) { int firstSpace = JavaDoc.indexOfFirstWhitespace(returnWrapped); if (firstSpace > 1) { if (returnWrapped.length() > firstSpace + 1) { String wrappedDoc = returnWrapped.substring(firstSpace + 1).trim(); if (!wrappedDoc.isEmpty()) { return wrappedDoc; } } } } return super.get(tagHandler); } }
if (hintInfo != null) { returnType = (DecoratedTypeMirror) TypeHintUtils.getTypeHint(hintInfo, this.env, getReturnType()); returnType.setDeferredDocComment(new ReturnDocComment(this)); DecoratedTypeMirror responseType = (DecoratedTypeMirror) TypeMirrorDecorator.decorate(jresponse.getTypeArguments().get(0), this.env); if (responseType.isDeclared()) { responseType.setDeferredDocComment(new ReturnDocComment(this)); returnType = responseType; objectType.setDeferredDocComment(new ReturnDocComment(this)); returnType = objectType; if (!apiOperation.responseContainer().isEmpty()) { swaggerReturnType = (DecoratedTypeMirror) this.env.getTypeUtils().getArrayType(swaggerReturnType); swaggerReturnType.setDeferredDocComment(new ReturnDocComment(this));
returnType = (DecoratedTypeMirror) TypeHintUtils.getTypeHint(hintInfo, this.env, null); if (returnType != null) { returnType.setDeferredDocComment(new ReturnDocComment(this)); returnType.setDeferredDocComment(new ReturnDocComment(this));
returnType = (DecoratedTypeMirror) TypeHintUtils.getTypeHint(hintInfo, this.env, null); if (returnType != null) { returnType.setDeferredDocComment(new ReturnDocComment(this)); returnType.setDeferredDocComment(new ReturnDocComment(this));
returnType.setDeferredDocComment(new ReturnDocComment(this)); outputPayload = returnType.isVoid() ? null : new ResourceRepresentationMetadata(returnType);