Class SyntheticAnnotationMirror
java.lang.Object
org.microbean.construct.element.SyntheticAnnotationMirror
- All Implemented Interfaces:
Constable, AnnotationMirror
An experimental
AnnotationMirror implementation that is partially or wholly synthetic.- Author:
- Laird Nelson
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAn experimentalAnnotationValueimplementation that is partially or wholly synthetic. -
Constructor Summary
ConstructorsConstructorDescriptionSyntheticAnnotationMirror(TypeElement annotationTypeElement, Map<? extends String, ?> values) Creates a newSyntheticAnnotationMirror. -
Method Summary
Modifier and TypeMethodDescriptionfinal Optional<? extends ConstantDesc> final DeclaredTypefinal Map<? extends ExecutableElement, ? extends AnnotationValue>
-
Constructor Details
-
SyntheticAnnotationMirror
public SyntheticAnnotationMirror(TypeElement annotationTypeElement, Map<? extends String, ?> values) Creates a newSyntheticAnnotationMirror.- Parameters:
annotationTypeElement- aTypeElementrepresenting an annotation type; must not benull; must returnANNOTATION_TYPEfrom itsgetKind()method;SyntheticAnnotationTypeElementimplementations are strongly preferredvalues- aMapof annotation values indexed by annotation element name; must not benull; must contain only values that are permissible for annotation elements- Throws:
NullPointerException- if any argument isnullIllegalArgumentException- ifannotationTypeElementdoes not returnANNOTATION_TYPEfrom an invocation of itsgetKind()method, or ifvalueshas more entries in it thanannotationTypeElementhas anotation elements
-
-
Method Details
-
describeConstable
- Specified by:
describeConstablein interfaceConstable
-
getAnnotationType
- Specified by:
getAnnotationTypein interfaceAnnotationMirror
-
getElementValues
- Specified by:
getElementValuesin interfaceAnnotationMirror
-