public class ReflexUtils
extends Object
反射工具
-
-
方法概要
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
构造器详细资料
-
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)
-
-
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)