Class JsonbAnnotated
- java.lang.Object
-
- org.eclipse.yasson.internal.model.JsonbAnnotated
-
- All Implemented Interfaces:
AnnotatedElement
- Direct Known Subclasses:
JsonbAnnotatedElement
public class JsonbAnnotated extends Object implements AnnotatedElement
Element wrapper containing merged annotation from class, superclasses and interfaces.- Author:
- Roman Grigoriadi
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<Class<? extends Annotation>,Annotation>
annotations
-
Constructor Summary
Constructors Constructor Description JsonbAnnotated(Annotation[] initialAnnotations)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Annotation>
TgetAnnotation(Class<T> annotationClass)
Annotation[]
getAnnotations()
Annotation[]
getDeclaredAnnotations()
void
putAnnotation(Annotation annotation)
Adds annotation.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.reflect.AnnotatedElement
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType, isAnnotationPresent
-
-
-
-
Field Detail
-
annotations
protected final Map<Class<? extends Annotation>,Annotation> annotations
-
-
Constructor Detail
-
JsonbAnnotated
public JsonbAnnotated(Annotation[] initialAnnotations)
Creates a new instance.- Parameters:
initialAnnotations
- Annotations to initialize from.
-
-
Method Detail
-
getAnnotation
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
- Specified by:
getAnnotation
in interfaceAnnotatedElement
-
getAnnotations
public Annotation[] getAnnotations()
- Specified by:
getAnnotations
in interfaceAnnotatedElement
-
getDeclaredAnnotations
public Annotation[] getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotations
in interfaceAnnotatedElement
-
putAnnotation
public void putAnnotation(Annotation annotation)
Adds annotation.- Parameters:
annotation
- Annotation to add.
-
-