类 ReflexUtils

java.lang.Object
cn.yingyya.next.moment.utils.ReflexUtils

public class ReflexUtils extends Object
反射工具
  • 构造器详细资料

    • ReflexUtils

      public ReflexUtils()
  • 方法详细资料

    • getMethod

      public static Method getMethod(@NotNull @NotNull Class<?> clazz, @NotNull @NotNull String fieldName, @NotNull @NotNull Class<?>... o)
    • invokeMethod

      public static Object invokeMethod(@NotNull @NotNull Method method, @Nullable @Nullable Object by, @Nullable @Nullable Object... param)
    • getFields

      public static List<Field> getFields(@NotNull @NotNull Class<?> type)
    • getField

      @Nullable public static @Nullable Field getField(@NotNull @NotNull Class<?> type, @NotNull @NotNull String fieldName)
    • getFieldValue

      @Nullable public static @Nullable Object getFieldValue(@NotNull @NotNull Object object, @NotNull @NotNull String fieldName)