Class AnnotatedWithParams

    • Method Detail

      • addOrOverrideParam

        public final void addOrOverrideParam​(int paramIndex,
                                             java.lang.annotation.Annotation a)
        Method called to override a method parameter annotation, usually due to a mix-in annotation masking or overriding an annotation 'real' method has.
      • getParameterAnnotations

        public final AnnotationMap getParameterAnnotations​(int index)
      • getParameterCount

        public abstract int getParameterCount()
      • getRawParameterType

        public abstract java.lang.Class<?> getRawParameterType​(int index)
      • getParameterType

        public abstract JavaType getParameterType​(int index)
        Since:
        2.7
      • getGenericParameterType

        @Deprecated
        public abstract java.lang.reflect.Type getGenericParameterType​(int index)
        Deprecated.
        Since 2.7, remove in 2.9
      • getAnnotationCount

        public final int getAnnotationCount()
      • call

        public abstract java.lang.Object call()
                                       throws java.lang.Exception
        Method that can be used to (try to) call this object without arguments. This may succeed or fail, depending on expected number of arguments: caller needs to take care to pass correct number. Exceptions are thrown directly from actual low-level call.

        Note: only works for constructors and static methods.

        Throws:
        java.lang.Exception
      • call

        public abstract java.lang.Object call​(java.lang.Object[] args)
                                       throws java.lang.Exception
        Method that can be used to (try to) call this object with specified arguments. This may succeed or fail, depending on expected number of arguments: caller needs to take care to pass correct number. Exceptions are thrown directly from actual low-level call.

        Note: only works for constructors and static methods.

        Throws:
        java.lang.Exception
      • call1

        public abstract java.lang.Object call1​(java.lang.Object arg)
                                        throws java.lang.Exception
        Method that can be used to (try to) call this object with single arguments. This may succeed or fail, depending on expected number of arguments: caller needs to take care to pass correct number. Exceptions are thrown directly from actual low-level call.

        Note: only works for constructors and static methods.

        Throws:
        java.lang.Exception