AnnotatedConstruct, ElementDelegatingExecutableElement, DelegatingTypeElement, MessageInterface, MessageMethod, Parameter, ReturnType, ThrowableTypepublic interface DelegatingElement extends Element
Element interface. All methods are invoked on the delegate element
by default.| Modifier and Type | Method | Description |
|---|---|---|
default <R,P> R |
accept(ElementVisitor<R,P> v,
P p) |
|
default TypeMirror |
asType() |
|
default <A extends Annotation> |
getAnnotation(Class<A> annotationType) |
|
default List<? extends AnnotationMirror> |
getAnnotationMirrors() |
|
default <A extends Annotation> |
getAnnotationsByType(Class<A> annotationType) |
|
Element |
getDelegate() |
The element to delegate the default methods to.
|
default List<? extends Element> |
getEnclosedElements() |
|
default Element |
getEnclosingElement() |
|
default ElementKind |
getKind() |
|
default Set<Modifier> |
getModifiers() |
|
default Name |
getSimpleName() |
|
default boolean |
isAnnotatedWith(Class<? extends Annotation> annotation) |
Checks whether or not the annotation is present on the element.
|
Element getDelegate()
default TypeMirror asType()
default ElementKind getKind()
default Set<Modifier> getModifiers()
getModifiers in interface Elementdefault Name getSimpleName()
getSimpleName in interface Elementdefault Element getEnclosingElement()
getEnclosingElement in interface Elementdefault List<? extends Element> getEnclosedElements()
getEnclosedElements in interface Elementdefault <A extends Annotation> A getAnnotation(Class<A> annotationType)
getAnnotation in interface AnnotatedConstructgetAnnotation in interface Elementdefault List<? extends AnnotationMirror> getAnnotationMirrors()
getAnnotationMirrors in interface AnnotatedConstructgetAnnotationMirrors in interface Elementdefault <R,P> R accept(ElementVisitor<R,P> v, P p)
default <A extends Annotation> A[] getAnnotationsByType(Class<A> annotationType)
getAnnotationsByType in interface AnnotatedConstructdefault boolean isAnnotatedWith(Class<? extends Annotation> annotation)
annotation - the annotation to check fortrue if the annotation is present, otherwise falseCopyright © 2018. All rights reserved.