| Package | Description |
|---|---|
| java.lang | |
| java.lang.annotation |
| Modifier and Type | Class and Description |
|---|---|
interface |
Deprecated
An annotation for marking an element as deprecated.
|
interface |
Override
An annotation to indicate that a method is intended to override a superclass
method.
|
interface |
SafeVarargs |
interface |
SuppressWarnings
An annotation that indicates a compiler should suppress any warnings of the
type specified in the
SuppressWarnings.value(). |
| Modifier and Type | Method and Description |
|---|---|
<T extends Annotation> |
Class.getAnnotation(Class annotationType)
Returns this element's annotation for the specified type if such an annotation is present, else null.
|
| Modifier and Type | Method and Description |
|---|---|
Annotation[] |
Class.getAnnotations()
Returns all annotations present on this element.
|
Annotation[] |
Class.getDeclaredAnnotations()
Returns all annotations that are directly present on this element.
|
| Modifier and Type | Class and Description |
|---|---|
interface |
Documented |
interface |
Inherited |
interface |
Retention |
interface |
Target |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Annotation> |
IncompleteAnnotationException.annotationType() |
Class<? extends Annotation> |
Annotation.annotationType()
Returns the annotation type of this annotation.
|
| Constructor and Description |
|---|
IncompleteAnnotationException(Class<? extends Annotation> annotationType,
String elementName) |
Copyright © 2025. All rights reserved.