Class Invocation

  • Direct Known Subclasses:
    InvocationParameter

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

      • Invocation

        public Invocation()
    • Method Detail

      • toMethodParameterStream

        public Stream<InvocationParameter> toMethodParameterStream()
        To method parameter stream.
        Returns:
        the stream
      • findAnnotationValueOnTargetClass

        public <T,​A extends AnnotationOptional<T> findAnnotationValueOnTargetClass​(Class<A> annotationType,
                                                                                           Predicate<A> condition,
                                                                                           Function<A,​T> mapper)
        Find annotation value on target class.
        Type Parameters:
        T - the type parameter
        A - the type parameter
        Parameters:
        annotationType - the annotation type
        condition - the condition
        mapper - the mapper
        Returns:
        the optional
      • findAnnotationValueOnMethod

        public <T,​A extends AnnotationOptional<T> findAnnotationValueOnMethod​(Class<A> annotationType,
                                                                                      Predicate<A> condition,
                                                                                      Function<A,​T> mapper)
        Find annotation value on method.
        Type Parameters:
        T - the type parameter
        A - the type parameter
        Parameters:
        annotationType - the annotation type
        condition - the condition
        mapper - the mapper
        Returns:
        the optional
      • findAnnotationValueOnParameter

        public <T,​A extends AnnotationOptional<T> findAnnotationValueOnParameter​(int parameterIndex,
                                                                                         Class<A> annotationType,
                                                                                         Predicate<A> condition,
                                                                                         Function<A,​T> mapper)
        Find annotation value on parameter.
        Type Parameters:
        T - the type parameter
        A - the type parameter
        Parameters:
        parameterIndex - the parameter index
        annotationType - the annotation type
        condition - the condition
        mapper - the mapper
        Returns:
        the optional