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 TypeMirror
asType()
final Element
delegate()
final Optional
<? extends ConstantDesc> final boolean
final DelegatingElement
final <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 Object
final AnnotationValue
final List
<? extends ModuleElement.Directive> final List
<? extends DelegatingElement> final DelegatingElement
final DelegatingElement
final List
<? extends DelegatingTypeMirror> final ElementKind
getKind()
final NestingKind
final List
<? extends DelegatingElement> final Name
final DelegatingTypeMirror
final List
<? extends DelegatingElement> final DelegatingTypeMirror
final Name
final DelegatingTypeMirror
final List
<? extends DelegatingTypeMirror> final List
<? extends DelegatingElement> final int
hashCode()
final boolean
final boolean
isOpen()
final boolean
final boolean
static 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 DelegatingElement
of
(Element e, TypeAndElementSource tes) static final DelegatingElement
of
(Element e, TypeAndElementSource tes, Equality ehc) final String
toString()
static final <E extends Element>
Eunwrap
(E e) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface javax.lang.model.element.TypeElement
getPermittedSubclasses
-
Method Details
-
accept
-
asType
- Specified by:
asType
in interfaceElement
- Specified by:
asType
in interfaceExecutableElement
- Specified by:
asType
in interfaceModuleElement
- Specified by:
asType
in interfacePackageElement
- Specified by:
asType
in interfaceTypeElement
- Specified by:
asType
in interfaceTypeParameterElement
- Specified by:
asType
in interfaceVariableElement
-
delegate
-
describeConstable
- Specified by:
describeConstable
in interfaceConstable
-
getAccessor
- Specified by:
getAccessor
in interfaceRecordComponentElement
-
getAnnotation
- Specified by:
getAnnotation
in interfaceAnnotatedConstruct
- Specified by:
getAnnotation
in interfaceElement
-
getAnnotationMirrors
- Specified by:
getAnnotationMirrors
in interfaceAnnotatedConstruct
- Specified by:
getAnnotationMirrors
in interfaceElement
-
getAnnotationsByType
- Specified by:
getAnnotationsByType
in interfaceAnnotatedConstruct
- Specified by:
getAnnotationsByType
in interfaceElement
-
getBounds
- Specified by:
getBounds
in interfaceTypeParameterElement
-
getConstantValue
- Specified by:
getConstantValue
in interfaceVariableElement
-
getDefaultValue
- Specified by:
getDefaultValue
in interfaceExecutableElement
-
getDirectives
- Specified by:
getDirectives
in interfaceModuleElement
-
getEnclosedElements
- Specified by:
getEnclosedElements
in interfaceElement
- Specified by:
getEnclosedElements
in interfaceModuleElement
- Specified by:
getEnclosedElements
in interfacePackageElement
- Specified by:
getEnclosedElements
in interfaceTypeElement
-
getEnclosingElement
- Specified by:
getEnclosingElement
in interfaceElement
- Specified by:
getEnclosingElement
in interfaceExecutableElement
- Specified by:
getEnclosingElement
in interfaceModuleElement
- Specified by:
getEnclosingElement
in interfacePackageElement
- Specified by:
getEnclosingElement
in interfaceRecordComponentElement
- Specified by:
getEnclosingElement
in interfaceTypeElement
- Specified by:
getEnclosingElement
in interfaceTypeParameterElement
- Specified by:
getEnclosingElement
in interfaceVariableElement
-
getGenericElement
- Specified by:
getGenericElement
in interfaceTypeParameterElement
-
getInterfaces
- Specified by:
getInterfaces
in interfaceTypeElement
-
getKind
-
getModifiers
- Specified by:
getModifiers
in interfaceElement
-
getNestingKind
- Specified by:
getNestingKind
in interfaceTypeElement
-
getParameters
- Specified by:
getParameters
in interfaceExecutableElement
-
getQualifiedName
- Specified by:
getQualifiedName
in interfaceModuleElement
- Specified by:
getQualifiedName
in interfacePackageElement
- Specified by:
getQualifiedName
in interfaceQualifiedNameable
- Specified by:
getQualifiedName
in interfaceTypeElement
-
getReceiverType
- Specified by:
getReceiverType
in interfaceExecutableElement
-
getRecordComponents
- Specified by:
getRecordComponents
in interfaceTypeElement
-
getReturnType
- Specified by:
getReturnType
in interfaceExecutableElement
-
getSimpleName
- Specified by:
getSimpleName
in interfaceElement
- Specified by:
getSimpleName
in interfaceExecutableElement
- Specified by:
getSimpleName
in interfaceModuleElement
- Specified by:
getSimpleName
in interfacePackageElement
- Specified by:
getSimpleName
in interfaceRecordComponentElement
- Specified by:
getSimpleName
in interfaceTypeElement
- Specified by:
getSimpleName
in interfaceVariableElement
-
getSuperclass
- Specified by:
getSuperclass
in interfaceTypeElement
-
getThrownTypes
- Specified by:
getThrownTypes
in interfaceExecutableElement
-
getTypeParameters
- Specified by:
getTypeParameters
in interfaceExecutableElement
- Specified by:
getTypeParameters
in interfaceParameterizable
- Specified by:
getTypeParameters
in interfaceTypeElement
-
isDefault
public final boolean isDefault()- Specified by:
isDefault
in interfaceExecutableElement
-
isOpen
public final boolean isOpen()- Specified by:
isOpen
in interfaceModuleElement
-
isUnnamed
public final boolean isUnnamed()- Specified by:
isUnnamed
in interfaceModuleElement
- Specified by:
isUnnamed
in interfacePackageElement
- Specified by:
isUnnamed
in interfaceTypeElement
- Specified by:
isUnnamed
in interfaceVariableElement
-
isVarArgs
public final boolean isVarArgs()- Specified by:
isVarArgs
in 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
-