BaseAnnotationArgumentProducer
A base class for implementing AnnotationArgumentProducer handles parameter types and wrapping for you. You only have to implement the typed extractor methods. If you want individual methods for each primitive type, use BasePrimitiveSpecificAnnotationArgumentProducer instead.
Processing is done in two steps:
Getting the raw value (of type Raw) for the parameter using getRawValueForParameter
Extracting an AnnotationArgument from the raw Raw value using the appropriate
extract
method based on the parameter type
Inheritors
Functions
Link copied to clipboard
open override fun <A : AnnotationArgument, P : AnnotationParameterType<A>> getArgument(parameter: AnnotationParameter<P>): A?
Returns the argument for the corresponding parameter, or null if the parameter is not present. The returned argument's AnnotationArgument.type must match the parameter's AnnotationParameter.type.