AnnotatedConstruct
, Element
DelegatingExecutableElement
, DelegatingTypeElement
, MessageInterface
, MessageMethod
, Parameter
, ReturnType
, ThrowableType
public 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 Element
default Name getSimpleName()
getSimpleName
in interface Element
default Element getEnclosingElement()
getEnclosingElement
in interface Element
default List<? extends Element> getEnclosedElements()
getEnclosedElements
in interface Element
default <A extends Annotation> A getAnnotation(Class<A> annotationType)
getAnnotation
in interface AnnotatedConstruct
getAnnotation
in interface Element
default List<? extends AnnotationMirror> getAnnotationMirrors()
getAnnotationMirrors
in interface AnnotatedConstruct
getAnnotationMirrors
in interface Element
default <R,P> R accept(ElementVisitor<R,P> v, P p)
default <A extends Annotation> A[] getAnnotationsByType(Class<A> annotationType)
getAnnotationsByType
in interface AnnotatedConstruct
default boolean isAnnotatedWith(Class<? extends Annotation> annotation)
annotation
- the annotation to check fortrue
if the annotation is present, otherwise false
Copyright © 2018. All rights reserved.