public interface AnnotatedElement
Modifier and Type | Method and Description |
---|---|
AnnotationModel |
getAnnotation(String name)
Returns an annotation model if the type is annotated with the
passed annotation name
|
Collection<AnnotationModel> |
getAnnotations()
Returns a unmodifiable set of annotations that are present on this
annotated element.
|
String |
getName()
Annotated element have a name, which vary depending on the actual
subclass type.
|
String |
shortDesc()
Construct and return a short description name that can be used to
display the instance value
|
String getName()
Class.getName()
String shortDesc()
Collection<AnnotationModel> getAnnotations()
AnnotationModel getAnnotation(String name)
name
- the annotation nameCopyright © 2009–2023 Oracle Corporation. All rights reserved.