Class InvocationParameter


  • public class InvocationParameter
    extends Invocation
    The invocation parameter.
    Author:
    Christian Bremer
    • Constructor Detail

      • InvocationParameter

        public InvocationParameter​(Invocation invocation,
                                   Parameter parameter,
                                   Object value,
                                   int index)
        Instantiates a new invocation parameter.
        Parameters:
        invocation - the invocation
        parameter - the parameter
        value - the value
        index - the index
    • Method Detail

      • getParameterName

        public String getParameterName()
        Gets parameter name.
        Returns:
        the parameter name
      • hasNoneParameterAnnotation

        public boolean hasNoneParameterAnnotation​(Set<Class<? extends Annotation>> annotationTypes)
        Has none parameter annotation.
        Parameters:
        annotationTypes - the annotation types
        Returns:
        the boolean
      • hasParameterAnnotation

        public boolean hasParameterAnnotation​(Class<? extends Annotation> annotationType)
        Has parameter annotation.
        Parameters:
        annotationType - the annotation type
        Returns:
        the boolean
      • findParameterAnnotation

        public <A extends AnnotationOptional<A> findParameterAnnotation​(Class<A> annotationType)
        Find parameter annotation.
        Type Parameters:
        A - the type parameter
        Parameters:
        annotationType - the annotation type
        Returns:
        the optional
      • toMultiValueMap

        public <E,​A extends Annotation> org.springframework.util.MultiValueMap<String,​E> toMultiValueMap​(Class<A> annotationType,
                                                                                                                     Function<A,​String> keyExtractor,
                                                                                                                     Function<Object,​E> valueMapper)
        To multi value map.
        Type Parameters:
        E - the type parameter
        A - the type parameter
        Parameters:
        annotationType - the annotation type
        keyExtractor - the key extractor
        valueMapper - the value mapper
        Returns:
        the multi value map