Class DefaultArgument<T>

java.lang.Object
io.micronaut.core.type.DefaultArgument<T>
Type Parameters:
T - The argument type
All Implemented Interfaces:
AnnotatedElement, AnnotationMetadataProvider, AnnotationSource, Named, Argument<T>, ArgumentCoercible<T>, TypeInformation<T>, TypeVariableResolver, Type
Direct Known Subclasses:
GenericArgument

@Internal public class DefaultArgument<T> extends Object implements Argument<T>, ArgumentCoercible<T>
Represents an argument to a constructor or method.
Since:
1.0
Author:
Graeme Rocher
  • Field Details

    • CONTAINER_TYPES

      public static final Set<String> CONTAINER_TYPES
    • PROVIDER_TYPES

      public static final Set<String> PROVIDER_TYPES
  • Constructor Details

    • DefaultArgument

      public DefaultArgument(Class<T> type, String name, AnnotationMetadata annotationMetadata, Argument<?>... genericTypes)
      Parameters:
      type - The type
      name - The name
      annotationMetadata - The annotation metadata
      genericTypes - The generic types
    • DefaultArgument

      public DefaultArgument(Class<T> type, AnnotationMetadata annotationMetadata, Argument<?>... genericTypes)
      Parameters:
      type - The type
      annotationMetadata - The annotation metadata
      genericTypes - The generic types
    • DefaultArgument

      public DefaultArgument(Class<T> type, String name, AnnotationMetadata annotationMetadata, Map<String,Argument<?>> typeParameters, Argument<?>[] typeParameterArray)
      Parameters:
      type - The type
      name - The name
      annotationMetadata - The annotation metadata
      typeParameters - The map of parameters
      typeParameterArray - The array of arguments
    • DefaultArgument

      public DefaultArgument(Class<T> type, String name, AnnotationMetadata annotationMetadata, boolean isTypeVariable, Argument<?>... genericTypes)
      Parameters:
      type - The type
      name - The name
      annotationMetadata - The annotation metadata
      isTypeVariable - Is this argument a type variable
      genericTypes - The generic types
    • DefaultArgument

      protected DefaultArgument(Class<T> type, String name, AnnotationMetadata annotationMetadata, Map<String,Argument<?>> typeParameters, Argument<?>[] typeParameterArray, boolean isTypeVariable)
      Parameters:
      type - The type
      name - The name
      annotationMetadata - The annotation metadata
      typeParameters - The map of parameters
      typeParameterArray - The array of arguments
      isTypeVariable - Is the argument a type variable
    • DefaultArgument

      public DefaultArgument(Type type, String name, AnnotationMetadata annotationMetadata)
      Parameters:
      type - The type
      name - The name
      annotationMetadata - The annotation metadata
  • Method Details