-
- 所有已知实现类:
ObjectReflect
public interface Reflect<T>
-
-
方法概要
修饰符和类型 方法 说明 default @NotNull Reflect<T>accept(@NotNull Consumer<T> consumer)<V> Reflect<V>cast(Class<V> type)Tget()default RField<T,?>getField(@NotNull String name)<V> RField<T,V>getField(@NotNull String name, @Nullable Class<V> type)RMethod<T,?>getMethod(@NotNull String name, Class[] types)<R> RMethod<T,R>getMethod(@NotNull String name, Class<R> returnType, Class... types)RMethod<T,?>[]getMethods(@NotNull String name)Reflect<?>invoke(@NotNull String name, Class[] types, Object... values)Reflect<?>invoke(@NotNull String name, Object... values)static <W> @NotNull Reflect<W>ofClass(@NotNull Class<W> clazz)static <W> @NotNull Reflect<W>ofObject(W value)default @NotNull Optional<T>toOptional()@NotNull Reflect<T>toRoot()
-
-
-
方法详细资料
-
ofObject
@Contract(pure=true) @NotNull static <W> @NotNull Reflect<W> ofObject(W value)
-
ofClass
@Contract(pure=true) @NotNull static <W> @NotNull Reflect<W> ofClass(@NotNull @NotNull Class<W> clazz)
-
get
@Contract(pure=true) T get()
-
getField
@Contract(pure=true) <V> RField<T,V> getField(@NotNull @NotNull String name, @Nullable @Nullable Class<V> type)
-
getMethod
<R> RMethod<T,R> getMethod(@NotNull @NotNull String name, Class<R> returnType, Class... types)
-
-