接口 Reflect<T>

  • 所有已知实现类:
    ObjectReflect

    public interface Reflect<T>
    • 方法详细资料

      • ofObject

        @Contract(pure=true)
        @NotNull
        static <W> Reflect<W> ofObject​(W value)
      • ofClass

        @Contract(pure=true)
        @NotNull
        static <W> Reflect<W> ofClass​(@NotNull
                                      Class<W> clazz)
      • get

        @Contract(pure=true)
        T get()
      • toOptional

        @NotNull
        @Contract(pure=true)
        default Optional<T> toOptional()
      • toRoot

        @Contract(pure=true)
        @NotNull
        Reflect<T> toRoot()
      • cast

        @Contract(pure=true)
        <V> Reflect<V> cast​(Class<V> type)
      • getField

        @Contract(pure=true)
        default RField<T,​?> getField​(@NotNull
                                           String name)
      • getField

        @Contract(pure=true)
        <V> RField<T,​V> getField​(@NotNull
                                       String name,
                                       @Nullable
                                       Class<V> type)