Class Parameter

    • Constructor Detail

      • Parameter

        public Parameter​(Method method,
                         int parameterIndex)
    • Method Detail

      • findAnnotation

        public <A extends Annotation> A findAnnotation​(Class<A> annotationType)
        Return the parameter annotation of the given type, if available.
        Parameters:
        annotationType - the annotation type to look for
        Returns:
        the annotation object, or null if not found
      • getAnnotations

        public List<? extends Annotation> getAnnotations()
        Return all parameter annotations.
        Returns:
        the List of annotation objects.
      • getParameterIndex

        public int getParameterIndex()
        Returns:
        the parameter index.
      • getParameterType

        public Class<?> getParameterType()
        Returns:
        the parameter type.
      • isAssignableTo

        public boolean isAssignableTo​(Class<?> target)
        Check whether the parameter is assignable to target.
        Parameters:
        target - must not be null.
        Returns:
      • isSpecialParameter

        public boolean isSpecialParameter()
        Returns:
        true if the parameter is a special parameter.
      • getName

        public String getName()
        Returns:
        the parameter name or null if not available.