Class ReflectionUtils

java.lang.Object
io.rxson.reactive.ReflectionUtils

public class ReflectionUtils
extends Object
Author:
Mohamed Aly Bou Hanane © 2020
  • Constructor Details

    • ReflectionUtils

      public ReflectionUtils()
  • Method Details

    • isArray

      public static boolean isArray​(Field field)
    • isPublisher

      public static boolean isPublisher​(Field field)
    • getAllFields

      public static Collection<Field> getAllFields​(Class clazz)
    • getClassFields

      public static List<Field> getClassFields​(Class clazz)
    • getClassVisibleFields

      public static List<Field> getClassVisibleFields​(Class clazz)
    • getGenericType

      public static Class<?> getGenericType​(Field field)
      Finds the generic type of the field. If the field is not generic it returns Object.class.
      Parameters:
      field - to be evaluated
    • getType

      public static Class<?> getType​(Field field)
    • invokeSetter

      public static void invokeSetter​(Object obj, String fieldName, Object fieldValue)
    • getJsonPath

      public static String getJsonPath​(Field field)
    • getJsonPath

      public static String getJsonPath​(Field field, String key)