@Override public Element getEnclosingElement() { if (this.enclosingElement == null) { this.enclosingElement = ElementDecorator.decorate(delegate.getEnclosingElement(), env); } return this.enclosingElement; }
@Override public List<? extends Element> getEnclosedElements() { if (this.enclosedElements == null) { this.enclosedElements = ElementDecorator.decorate(delegate.getEnclosedElements(), env); } return this.enclosedElements; }
public List<ExecutableElement> getMethods() { if (this.methods == null) { this.methods = ElementDecorator.decorate(ElementFilter.methodsIn(this.delegate.getEnclosedElements()), this.env); } return this.methods; }
public List<ExecutableElement> getMethods() { if (this.methods == null) { this.methods = ElementDecorator.decorate(ElementFilter.methodsIn(this.delegate.getEnclosedElements()), this.env); } return this.methods; }
@Override public Set<? extends Element> getElementsAnnotatedWith(Class<? extends Annotation> a) { Set<Element> decorated = new HashSet<Element>(); for (Element element : this.delegate.getElementsAnnotatedWith(a)) { decorated.add(ElementDecorator.decorate(element, this.env)); } return decorated; } }
public List<ExecutableElement> getConstructors() { if (this.constructors == null) { this.constructors = ElementDecorator.decorate(ElementFilter.constructorsIn(this.delegate.getEnclosedElements()), this.env); } return constructors; }
@Override public Element getGenericElement() { if (this.genericElement == null) { this.genericElement = ElementDecorator.decorate(this.delegate.getGenericElement(), this.env); } return this.genericElement; }
@Override public List<? extends TypeParameterElement> getTypeParameters() { if (this.typeParameters == null) { this.typeParameters = ElementDecorator.decorate(delegate.getTypeParameters(), env); } return this.typeParameters; }
public PackageElement getPackage() { if (this.pckg == null) { this.pckg = ElementDecorator.decorate(this.env.getElementUtils().getPackageOf(this.delegate), this.env); } return this.pckg; }
public Element asElement(TypeMirror t) { while (t instanceof DecoratedTypeMirror) { t = ((DecoratedTypeMirror) t).getDelegate(); } return ElementDecorator.decorate(delegate.asElement(t), this.env); }
@Override public Set<? extends Element> getRootElements() { Set<Element> decorated = new HashSet<Element>(); for (Element element : this.delegate.getRootElements()) { decorated.add(ElementDecorator.decorate(element, this.env)); } return decorated; }
@Override public Set<? extends Element> getElementsAnnotatedWith(TypeElement a) { while (a instanceof DecoratedTypeElement) { a = ((DecoratedTypeElement) a).getDelegate(); } Set<Element> decorated = new HashSet<Element>(); for (Element element : this.delegate.getElementsAnnotatedWith(a)) { decorated.add(ElementDecorator.decorate(element, this.env)); } return decorated; }
public Element asElement(TypeMirror t) { while (t instanceof DecoratedTypeMirror) { t = ((DecoratedTypeMirror) t).getDelegate(); } return ElementDecorator.decorate(delegate.asElement(t), this.env); }
@Override public Set<? extends Element> getElementsAnnotatedWith(TypeElement a) { while (a instanceof DecoratedTypeElement) { a = ((DecoratedTypeElement) a).getDelegate(); } Set<Element> decorated = new HashSet<Element>(); for (Element element : this.delegate.getElementsAnnotatedWith(a)) { decorated.add(ElementDecorator.decorate(element, this.env)); } return decorated; }
@Override public Element asElement() { return ElementDecorator.decorate(this.delegate.asElement(), this.env); }
@Override public PackageElement getPackageOf(Element e) { while (e instanceof DecoratedElement) { e = ((DecoratedElement) e).getDelegate(); } return e instanceof ElementAdaptor ? ((ElementAdaptor)e).getPackage() : ElementDecorator.decorate(delegate.getPackageOf(e), this.env); }
private List<? extends VariableElement> loadDecoratedParameters() { List<? extends VariableElement> parameters = ElementDecorator.decorate(((ExecutableElement) this.delegate).getParameters(), this.env); if (parameters != null) { for (VariableElement param : parameters) { ((DecoratedVariableElement) param).setDocComment(createParamDocComment(param)); } } return parameters; }
public TypeElement boxedClass(PrimitiveType p) { while (p instanceof DecoratedPrimitiveType) { p = ((DecoratedPrimitiveType) p).getDelegate(); } return ElementDecorator.decorate(delegate.boxedClass(p), this.env); }
@Override public List<? extends Element> getAllMembers(TypeElement type) { while (type instanceof DecoratedTypeElement) { type = ((DecoratedTypeElement) type).getDelegate(); } return type instanceof TypeElementAdaptor ? ((TypeElementAdaptor)type).getAllMembers() : ElementDecorator.decorate(delegate.getAllMembers(type), this.env); }
@Override public List<? extends Element> getAllMembers(TypeElement type) { while (type instanceof DecoratedTypeElement) { type = ((DecoratedTypeElement) type).getDelegate(); } return type instanceof TypeElementAdaptor ? ((TypeElementAdaptor)type).getAllMembers() : ElementDecorator.decorate(delegate.getAllMembers(type), this.env); }