| Modifier and Type | Class and Description |
|---|---|
| public static enum | DocletElement.
Subkind enums that this element supports. |
| Modifier and Type | Method and Description |
|---|---|
| public default <R, P> R | accept(ElementVisitor<R, P> v, P p)
Implements javax. Applies a visitor to this element. |
| public default TypeMirror | asType()
Implements javax. Returns the type defined by this element. |
| public default <A extends Annotation> A | getAnnotation(Class<A> annotationType)
Implements javax. Returns this construct's annotation of the specified type if
such an annotation is present, else |
| public default List | getAnnotationMirrors()
Implements javax. Returns the annotations that are directly present on this construct. |
| public default <A extends Annotation> A[] | getAnnotationsByType(Class<A> annotationType)
Implements javax. Returns annotations of the specified type that are associated with this construct. |
| public default List | getEnclosedElements()
Implements javax. Returns the elements that are, loosely speaking, directly enclosed by this element. |
| public default Element | getEnclosingElement()
Implements javax. Returns the innermost element within which this element is, loosely speaking, enclosed. |
| public FileObject | Returns: the file objectReturns the file object associated with this special
element such as |
| public default ElementKind | |
| public default Set | getModifiers()
Implements javax. Returns the modifiers of this element, excluding annotations. |
| public PackageElement | Returns: the anchor element.Returns the anchoring package element, in the case of a module element, this is the module's unnamed package. |
| public default Name | getSimpleName()
Implements javax. Returns the simple (unqualified) name of this element. |
| public DocletElement. |
| accept | back to summary |
|---|---|
| public default <R, P> R accept(ElementVisitor<R, P> v, P p) Implements javax. Doc from javax. Applies a visitor to this element.
| |
| asType | back to summary |
|---|---|
| public default TypeMirror asType() Implements javax. Doc from javax. Returns the type defined by this element.
| |
| getAnnotation | back to summary |
|---|---|
| public default <A extends Annotation> A getAnnotation(Class<A> annotationType) Implements javax. Doc from javax. Returns this construct's annotation of the specified type if
such an annotation is present, else The annotation returned by this method could contain an element
whose value is of type Note This method is unlike others in this and related interfaces. It operates on runtime reflective information — representations of annotation interfaces currently loaded into the VM — rather than on the representations defined by and used throughout these interfaces. Consequently, calling methods on the returned annotation object can throw many of the exceptions that can be thrown when calling methods on an annotation object returned by core reflection. This method is intended for callers that are written to operate on a known, fixed set of annotation interfaces. Note that any annotation returned by this method is a declaration annotation.
| |
| getAnnotationMirrors | back to summary |
|---|---|
| public default List Implements javax. Doc from javax. Returns the annotations that are directly present on this construct. To get inherited annotations as well, use Note that any annotations returned by this method are declaration annotations.
| |
| getAnnotationsByType | back to summary |
|---|---|
| public default <A extends Annotation> A[] getAnnotationsByType(Class<A> annotationType) Implements javax. Doc from javax. Returns annotations of the specified type that are associated
with this construct.
If there are no annotations of the specified type associated with this
construct, the return value is an array of length 0.
The order of annotations which are directly or indirectly
present on a construct C is computed as if indirectly present
annotations on C are directly present on C in place of their
container annotation, in the order in which they appear in the
value element of the container annotation.
The difference between this method and The annotations returned by this method could contain an element
whose value is of type Note This method is unlike others in this and related interfaces. It operates on runtime reflective information — representations of annotation interfaces currently loaded into the VM — rather than on the representations defined by and used throughout these interfaces. Consequently, calling methods on the returned annotation object can throw many of the exceptions that can be thrown when calling methods on an annotation object returned by core reflection. This method is intended for callers that are written to operate on a known, fixed set of annotation interfaces. Note that any annotations returned by this method are declaration annotations.
| |
| getEnclosedElements | back to summary |
|---|---|
| public default List Implements javax. Doc from javax. Returns the elements that are, loosely speaking, directly enclosed by this element. A class or interface is considered to enclose the fields, methods, constructors, record components, and member classes and interfaces that it directly declares. A package encloses the top-level classes and interfaces within it, but is not considered to enclose subpackages. A module encloses packages within it. Enclosed elements may include implicitly declared mandated elements. Other kinds of elements are not currently considered to enclose any elements; however, that may change as this API or the programming language evolves.
| |
| getEnclosingElement | back to summary |
|---|---|
| public default Element getEnclosingElement() Implements javax. Doc from javax. Returns the innermost element within which this element is, loosely speaking, enclosed.
| |
| getFileObject | back to summary |
|---|---|
| public FileObject getFileObject() Returns the file object associated with this special
element such as
| |
| getKind | back to summary |
|---|---|
| public default ElementKind getKind() Implements javax. Doc from javax. Returns the
| |
| getModifiers | back to summary |
|---|---|
| public default Set Implements javax. Doc from javax. Returns the modifiers of this element, excluding annotations.
Implicit modifiers, such as the
| |
| getPackageElement | back to summary |
|---|---|
| public PackageElement getPackageElement() Returns the anchoring package element, in the case of a module element, this is the module's unnamed package.
| |
| getSimpleName | back to summary |
|---|---|
| public default Name getSimpleName() Implements javax. Doc from javax. Returns the simple (unqualified) name of this element. The
name of a generic class or interface does not include any
reference to its formal type parameters.
For example, the simple name of the type element representing
| |
| getSubKind | back to summary |
|---|---|
| public DocletElement. Returns the subkind of this element.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final DocletElement. | |
| public static final DocletElement. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static DocletElement. | |
| public static DocletElement. |
| DOCFILE | back to summary |
|---|---|
| public static final DocletElement. | |
| OVERVIEW | back to summary |
|---|---|
| public static final DocletElement. | |
| Kind | back to summary |
|---|---|
| private Kind() | |
| valueOf | back to summary |
|---|---|
| public static DocletElement. | |
| values | back to summary |
|---|---|
| public static DocletElement. | |