Class JsonbAnnotatedElement<T extends AnnotatedElement>
java.lang.Object
org.eclipse.yasson.internal.model.JsonbAnnotatedElement<T>
- Type Parameters:
T- annotated element
Annotation holder for classes, superclasses, interfaces, fields, getters and setters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<AT extends Annotation>
ATgetAnnotation(Class<AT> annotationClass) Get an annotation by type.Gets element.voidputAnnotation(Annotation annotation) Adds annotation.
-
Constructor Details
-
JsonbAnnotatedElement
Creates a new instance.- Parameters:
element- Element.
-
-
Method Details
-
getElement
Gets element.- Returns:
- Element.
-
getAnnotation
Get an annotation by type.- Type Parameters:
AT- Type of annotation- Parameters:
annotationClass- Type of annotation- Returns:
- Annotation by passed type
-
getAnnotations
-
putAnnotation
Adds annotation.- Parameters:
annotation- Annotation to add.
-