java.lang.Object
org.microbean.lang.element.DelegatingElement
- All Implemented Interfaces:
Constable,AnnotatedConstruct,Element,ExecutableElement,ModuleElement,PackageElement,Parameterizable,QualifiedNameable,RecordComponentElement,TypeElement,TypeParameterElement,VariableElement
public final class DelegatingElement
extends Object
implements Constable, ExecutableElement, ModuleElement, PackageElement, Parameterizable, RecordComponentElement, TypeElement, TypeParameterElement, VariableElement
An
Element that implements all known Element subinterfaces and delegates to an underlying Element for all operations.
This class is safe for concurrent use by multiple threads.
- Author:
- Laird Nelson
-
Nested Class Summary
Nested classes/interfaces inherited from interface javax.lang.model.element.ModuleElement
ModuleElement.Directive, ModuleElement.DirectiveKind, ModuleElement.DirectiveVisitor<R,P>, ModuleElement.ExportsDirective, ModuleElement.OpensDirective, ModuleElement.ProvidesDirective, ModuleElement.RequiresDirective, ModuleElement.UsesDirective -
Method Summary
Modifier and TypeMethodDescriptionfinal <R,P> R accept(ElementVisitor<R, P> v, P p) final TypeMirrorasType()final Elementdelegate()final Optional<? extends ConstantDesc> final booleanfinal DelegatingElementfinal <A extends Annotation>
AgetAnnotation(Class<A> annotationType) final List<? extends AnnotationMirror> final <A extends Annotation>
A[]getAnnotationsByType(Class<A> annotationType) final List<? extends DelegatingTypeMirror> final Objectfinal AnnotationValuefinal List<? extends ModuleElement.Directive> final List<? extends DelegatingElement> final DelegatingElementfinal DelegatingElementfinal List<? extends DelegatingTypeMirror> final ElementKindgetKind()final NestingKindfinal List<? extends DelegatingElement> final Namefinal DelegatingTypeMirrorfinal List<? extends DelegatingElement> final DelegatingTypeMirrorfinal Namefinal DelegatingTypeMirrorfinal List<? extends DelegatingTypeMirror> final List<? extends DelegatingElement> final inthashCode()final booleanfinal booleanisOpen()final booleanfinal booleanstatic final List<DelegatingElement> of(Collection<? extends Element> es, TypeAndElementSource tes) static final List<DelegatingElement> of(Collection<? extends Element> es, TypeAndElementSource tes, Equality ehc) static final DelegatingElementof(Element e, TypeAndElementSource tes) static final DelegatingElementof(Element e, TypeAndElementSource tes, Equality ehc) final StringtoString()static final <E extends Element>
Eunwrap(E e) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.lang.model.element.TypeElement
getPermittedSubclasses
-
Method Details
-
accept
-
asType
- Specified by:
asTypein interfaceElement- Specified by:
asTypein interfaceExecutableElement- Specified by:
asTypein interfaceModuleElement- Specified by:
asTypein interfacePackageElement- Specified by:
asTypein interfaceTypeElement- Specified by:
asTypein interfaceTypeParameterElement- Specified by:
asTypein interfaceVariableElement
-
delegate
-
describeConstable
- Specified by:
describeConstablein interfaceConstable
-
getAccessor
- Specified by:
getAccessorin interfaceRecordComponentElement
-
getAnnotation
- Specified by:
getAnnotationin interfaceAnnotatedConstruct- Specified by:
getAnnotationin interfaceElement
-
getAnnotationMirrors
- Specified by:
getAnnotationMirrorsin interfaceAnnotatedConstruct- Specified by:
getAnnotationMirrorsin interfaceElement
-
getAnnotationsByType
- Specified by:
getAnnotationsByTypein interfaceAnnotatedConstruct- Specified by:
getAnnotationsByTypein interfaceElement
-
getBounds
- Specified by:
getBoundsin interfaceTypeParameterElement
-
getConstantValue
- Specified by:
getConstantValuein interfaceVariableElement
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceExecutableElement
-
getDirectives
- Specified by:
getDirectivesin interfaceModuleElement
-
getEnclosedElements
- Specified by:
getEnclosedElementsin interfaceElement- Specified by:
getEnclosedElementsin interfaceModuleElement- Specified by:
getEnclosedElementsin interfacePackageElement- Specified by:
getEnclosedElementsin interfaceTypeElement
-
getEnclosingElement
- Specified by:
getEnclosingElementin interfaceElement- Specified by:
getEnclosingElementin interfaceExecutableElement- Specified by:
getEnclosingElementin interfaceModuleElement- Specified by:
getEnclosingElementin interfacePackageElement- Specified by:
getEnclosingElementin interfaceRecordComponentElement- Specified by:
getEnclosingElementin interfaceTypeElement- Specified by:
getEnclosingElementin interfaceTypeParameterElement- Specified by:
getEnclosingElementin interfaceVariableElement
-
getGenericElement
- Specified by:
getGenericElementin interfaceTypeParameterElement
-
getInterfaces
- Specified by:
getInterfacesin interfaceTypeElement
-
getKind
-
getModifiers
- Specified by:
getModifiersin interfaceElement
-
getNestingKind
- Specified by:
getNestingKindin interfaceTypeElement
-
getParameters
- Specified by:
getParametersin interfaceExecutableElement
-
getQualifiedName
- Specified by:
getQualifiedNamein interfaceModuleElement- Specified by:
getQualifiedNamein interfacePackageElement- Specified by:
getQualifiedNamein interfaceQualifiedNameable- Specified by:
getQualifiedNamein interfaceTypeElement
-
getReceiverType
- Specified by:
getReceiverTypein interfaceExecutableElement
-
getRecordComponents
- Specified by:
getRecordComponentsin interfaceTypeElement
-
getReturnType
- Specified by:
getReturnTypein interfaceExecutableElement
-
getSimpleName
- Specified by:
getSimpleNamein interfaceElement- Specified by:
getSimpleNamein interfaceExecutableElement- Specified by:
getSimpleNamein interfaceModuleElement- Specified by:
getSimpleNamein interfacePackageElement- Specified by:
getSimpleNamein interfaceRecordComponentElement- Specified by:
getSimpleNamein interfaceTypeElement- Specified by:
getSimpleNamein interfaceVariableElement
-
getSuperclass
- Specified by:
getSuperclassin interfaceTypeElement
-
getThrownTypes
- Specified by:
getThrownTypesin interfaceExecutableElement
-
getTypeParameters
- Specified by:
getTypeParametersin interfaceExecutableElement- Specified by:
getTypeParametersin interfaceParameterizable- Specified by:
getTypeParametersin interfaceTypeElement
-
isDefault
public final boolean isDefault()- Specified by:
isDefaultin interfaceExecutableElement
-
isOpen
public final boolean isOpen()- Specified by:
isOpenin interfaceModuleElement
-
isUnnamed
public final boolean isUnnamed()- Specified by:
isUnnamedin interfaceModuleElement- Specified by:
isUnnamedin interfacePackageElement- Specified by:
isUnnamedin interfaceTypeElement- Specified by:
isUnnamedin interfaceVariableElement
-
isVarArgs
public final boolean isVarArgs()- Specified by:
isVarArgsin interfaceExecutableElement
-
hashCode
public final int hashCode() -
equals
-
toString
-
of
public static final List<DelegatingElement> of(Collection<? extends Element> es, TypeAndElementSource tes) -
of
public static final List<DelegatingElement> of(Collection<? extends Element> es, TypeAndElementSource tes, Equality ehc) -
of
-
of
-
unwrap
-