Interface DelegatingElement
- All Superinterfaces:
AnnotatedConstruct, Element
- All Known Subinterfaces:
DelegatingExecutableElement, DelegatingTypeElement, MessageInterface, MessageMethod, Parameter, ReturnType, ThrowableType
- All Known Implementing Classes:
MessageInterfaceFactory.AptMessageInterface, MessageInterfaceFactory.LoggerInterface, MessageMethodBuilder.AptMessageMethod, ParameterFactory.AptParameter, ParameterFactory.MessageMethodParameter, ReturnTypeFactory.AptReturnType, ReturnTypeFactory.VoidReturnType, ThrowableTypeFactory.AptReturnThrowableType, ThrowableTypeFactory.AptThrowableType
A delegating
Element interface. All methods are invoked on the delegate element
by default.-
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
-
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
-