/** * Used when treating this as a parameter. * * @return The delegate. */ public TypeMirror getType() { return TypeMirrorDecorator.decorate(this.delegate, this.env); }
@Override public List<? extends TypeMirror> getInterfaces() { if (this.interfaces == null) { this.interfaces = TypeMirrorDecorator.decorate(this.delegate.getInterfaces(), env); } return this.interfaces; }
@Override public TypeMirror getSuperclass() { if (this.superclass == null) { this.superclass = TypeMirrorDecorator.decorate(this.delegate.getSuperclass(), env); } return this.superclass; }
@Override public TypeMirror asType() { if (this.type == null) { this.type = TypeMirrorDecorator.decorate(delegate.asType(), env); } return this.type; }
@Override public List<? extends TypeMirror> getInterfaces() { if (this.interfaces == null) { this.interfaces = TypeMirrorDecorator.decorate(this.delegate.getInterfaces(), env); } return this.interfaces; }
@Override public List<? extends TypeMirror> getBounds() { if (this.bounds == null) { this.bounds = TypeMirrorDecorator.decorate(this.delegate.getBounds(), env); } return this.bounds; }
/** * The min occurs of a web result. * * @return 1 if primitive. 0 otherwise. */ public int getMinOccurs() { DecoratedTypeMirror typeMirror = (DecoratedTypeMirror) TypeMirrorDecorator.decorate(this.delegate, this.env); return typeMirror.isPrimitive() ? 1 : 0; }
@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; }
public ArrayType getArrayType(TypeMirror componentType) { while (componentType instanceof DecoratedTypeMirror) { componentType = ((DecoratedTypeMirror) componentType).getDelegate(); } return TypeMirrorDecorator.decorate(delegate.getArrayType(componentType), this.env); }
private List<? extends TypeMirror> loadDecoratedThrownTypes(ExecutableElement delegate) { List<? extends TypeMirror> thrownTypes = TypeMirrorDecorator.decorate(delegate.getThrownTypes(), env); if (thrownTypes != null && !thrownTypes.isEmpty()) { for (TypeMirror thrownType : thrownTypes) { ((DecoratedReferenceType)thrownType).setDeferredDocComment(new ThrowsDocComment(this, String.valueOf(thrownType))); } } return thrownTypes; }
public TypeMirror capture(TypeMirror t) { while (t instanceof DecoratedTypeMirror) { t = ((DecoratedTypeMirror) t).getDelegate(); } return TypeMirrorDecorator.decorate(delegate.capture(t), this.env); }
public PrimitiveType unboxedType(TypeMirror t) { while (t instanceof DecoratedTypeMirror) { t = ((DecoratedTypeMirror) t).getDelegate(); } return TypeMirrorDecorator.decorate(delegate.unboxedType(t), this.env); } }
public TypeMirror erasure(TypeMirror t) { while (t instanceof DecoratedTypeMirror) { t = ((DecoratedTypeMirror) t).getDelegate(); } return TypeMirrorDecorator.decorate(delegate.erasure(t), this.env); }
public List<? extends TypeMirror> directSupertypes(TypeMirror t) { while (t instanceof DecoratedTypeMirror) { t = ((DecoratedTypeMirror) t).getDelegate(); } return TypeMirrorDecorator.decorate(delegate.directSupertypes(t), this.env); }
public TypeMirror erasure(TypeMirror t) { while (t instanceof DecoratedTypeMirror) { t = ((DecoratedTypeMirror) t).getDelegate(); } return TypeMirrorDecorator.decorate(delegate.erasure(t), this.env); }
public TypeMirror capture(TypeMirror t) { while (t instanceof DecoratedTypeMirror) { t = ((DecoratedTypeMirror) t).getDelegate(); } return TypeMirrorDecorator.decorate(delegate.capture(t), this.env); }
public ArrayType getArrayType(TypeMirror componentType) { while (componentType instanceof DecoratedTypeMirror) { componentType = ((DecoratedTypeMirror) componentType).getDelegate(); } return TypeMirrorDecorator.decorate(delegate.getArrayType(componentType), this.env); }
public TypeMirror asMemberOf(DeclaredType containing, Element element) { while (containing instanceof DecoratedDeclaredType) { containing = ((DecoratedDeclaredType) containing).getDelegate(); } while (element instanceof DecoratedElement) { element = ((DecoratedElement) element).getDelegate(); } return TypeMirrorDecorator.decorate(delegate.asMemberOf(containing, element), this.env); }
@Override public DecoratedTypeMirror getReturnType() { TypeMirror type = super.getReturnType(); MapType mapType = MapType.findMapType(type, this.context.getJaxbContext()); if (mapType != null) { type = mapType; } return (DecoratedTypeMirror) TypeMirrorDecorator.decorate(type, this.env); }
private boolean isImplicitUntypedRequestBody(TypeMirror parameterType) { DecoratedTypeMirror<?> type = (DecoratedTypeMirror) TypeMirrorDecorator.decorate(parameterType, env); return type.isInstanceOf(InputStream.class) || type.isInstanceOf(Reader.class) || type .isInstanceOf("javax.servlet.ServletRequest") || type.isInstanceOf("javax.servlet.http.HttpServletRequest"); } }