Class Fields


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

      Constructors 
      Constructor Description
      Fields()  
    • Method Summary

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

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

      • Fields

        public Fields()
    • Method Detail

      • findAnnotated

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