Class Methods


  • public class Methods
    extends java.lang.Object
    Support functions for Methods.
    • Constructor Summary

      Constructors 
      Constructor Description
      Methods()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<java.lang.reflect.Method> findAnnotated​(java.lang.Class<?> cls, java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
      Find all methods with the given annotation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Methods

        public Methods()
    • Method Detail

      • findAnnotated

        public static java.util.List<java.lang.reflect.Method> findAnnotated​(java.lang.Class<?> cls,
                                                                             java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
        Find all methods with the given annotation.
        Parameters:
        cls - a Class to search, cannot be null
        annotation - an annotation Class, cannot be null
        Returns:
        a list of Methods, never null or contains null, but can be empty