Interface DelegatingElement
- All Superinterfaces:
AnnotatedConstruct,Element
- All Known Subinterfaces:
DelegatingExecutableElement,DelegatingTypeElement,LoggerMessageMethod,MessageInterface,MessageMethod,Parameter,ReturnType,ThrowableType
A delegating
Element interface. All methods are invoked on the delegate element
by default.- Author:
- James R. Perkins
-
Method Summary
Modifier and TypeMethodDescriptiondefault <R,P> R accept(ElementVisitor<R, P> v, P p) default TypeMirrorasType()default <A extends Annotation>
AgetAnnotation(Class<A> annotationType) default List<? extends AnnotationMirror> default <A extends Annotation>
A[]getAnnotationsByType(Class<A> annotationType) The element to delegate the default methods to.default Elementdefault ElementKindgetKind()default Namedefault booleanisAnnotatedWith(Class<? extends Annotation> annotation) Checks whether or not the annotation is present on the element.
-
Method Details
-
getDelegate
Element getDelegate()The element to delegate the default methods to.- Returns:
- the delegate
-
asType
-
getKind
-
getModifiers
- Specified by:
getModifiersin interfaceElement
-
getSimpleName
- Specified by:
getSimpleNamein interfaceElement
-
getEnclosingElement
- Specified by:
getEnclosingElementin interfaceElement
-
getEnclosedElements
- Specified by:
getEnclosedElementsin interfaceElement
-
getAnnotation
- Specified by:
getAnnotationin interfaceAnnotatedConstruct- Specified by:
getAnnotationin interfaceElement
-
getAnnotationMirrors
- Specified by:
getAnnotationMirrorsin interfaceAnnotatedConstruct- Specified by:
getAnnotationMirrorsin interfaceElement
-
accept
-
getAnnotationsByType
- Specified by:
getAnnotationsByTypein interfaceAnnotatedConstruct
-
isAnnotatedWith
Checks whether or not the annotation is present on the element.- Parameters:
annotation- the annotation to check for- Returns:
trueif the annotation is present, otherwisefalse
-