Class AnnotatedMethod

    • Constructor Detail

      • AnnotatedMethod

        public AnnotatedMethod​(Method method)
        Create annotated method instance from the Java method.
        Parameters:
        method - Java method.
    • Method Detail

      • getMethod

        public Method getMethod()
        Get the underlying Java method.
        Returns:
        the underlying Java method.
      • getDeclaredMethod

        public Method getDeclaredMethod()
        Get the underlying declared Java method. This method overrides or is the same as the one retrieved by getMethod.
        Returns:
        the underlying declared Java method.
      • getParameterAnnotations

        public Annotation[][] getParameterAnnotations()
        Get method parameter annotations.
        Returns:
        method parameter annotations.
      • getParameterTypes

        public Class<?>[] getParameterTypes()
        Get method parameter types. See also Method.getParameterTypes().
        Returns:
        method parameter types.
      • getGenericParameterTypes

        public Type[] getGenericParameterTypes()
        Get generic method parameter types. See also Method.getGenericParameterTypes().
        Returns:
        generic method parameter types.
      • getMetaMethodAnnotations

        public <T extends AnnotationList<T> getMetaMethodAnnotations​(Class<T> annotation)
        Get all instances of the specified meta-annotation type found on the method annotations.
        Type Parameters:
        T - meta-annotation type.
        Parameters:
        annotation - meta-annotation class to be searched for.
        Returns:
        meta-annotation instances of a given type annotating the method annotations.