Package io.micronaut.core.convert
Interface ArgumentConversionContext<T>
- Type Parameters:
T- The type
- All Superinterfaces:
AnnotationMetadataProvider,AnnotationSource,ConversionContext,ErrorsContext,Iterable<ConversionError>,TypeVariableResolver
- All Known Subinterfaces:
ImmutableArgumentConversionContext<T>
Extended version of the
ConversionContext specifically for conversion Argument instances.- Since:
- 1.0
- Author:
- Graeme Rocher
-
Field Summary
Fields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTYFields inherited from interface io.micronaut.core.convert.ConversionContext
BOOLEAN, DEFAULT, INT, LIST_OF_STRING, LONG, MAP, STRING -
Method Summary
Modifier and TypeMethodDescriptiondefault AnnotationMetadataSupplies the metadata.default Argument[]In the case where the type to be converted contains generic type arguments this map will return the concrete types of those arguments.default ArgumentConversionContext<T>with(AnnotationMetadata annotationMetadata) Augment this context with annotation metadata.Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypeMethods inherited from interface io.micronaut.core.annotation.AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclaredMethods inherited from interface io.micronaut.core.convert.ConversionContext
getCharset, getLocale, withMethods inherited from interface io.micronaut.core.convert.ErrorsContext
getLastError, hasErrors, iterator, reject, rejectMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface io.micronaut.core.type.TypeVariableResolver
getFirstTypeVariable, getTypeVariable
-
Method Details
-
getArgument
- Returns:
- The
Argumentbeing converted
-
getTypeParameters
- Specified by:
getTypeParametersin interfaceTypeVariableResolver- Returns:
- The type parameters as an array
-
getTypeVariables
Description copied from interface:ConversionContextIn the case where the type to be converted contains generic type arguments this map will return the concrete types of those arguments. For example for theMaptype two keys will be present called 'K' and 'V' with the actual types of the key and value.- Specified by:
getTypeVariablesin interfaceConversionContext- Specified by:
getTypeVariablesin interfaceTypeVariableResolver- Returns:
- A map of type variables
-
getAnnotationMetadata
Description copied from interface:AnnotationMetadataProviderSupplies the metadata. Defaults toAnnotationMetadata.EMPTY_METADATA.- Specified by:
getAnnotationMetadatain interfaceAnnotationMetadataProvider- Returns:
- The
AnnotationMetadata
-
with
Augment this context with annotation metadata.- Parameters:
annotationMetadata- The annotation metadata- Returns:
- The conversion context
-