Class ReflectUtil
java.lang.Object
net.megavex.scoreboardlibrary.implementation.packetAdapter.util.reflect.ReflectUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> @Nullable ConstructorAccessor<T>findConstructor(@NotNull Class<T> clazz, @NotNull Class<?>... args) static <T> @NotNull ConstructorAccessor<T>findConstructorOrThrow(@NotNull Class<T> clazz, @NotNull Class<?>... args) static <T> @NotNull PacketConstructor<T>findEmptyConstructor(@NotNull Class<T> packetClass) static <T,V> @NotNull FieldAccessor<T, V> static <T,V> @NotNull FieldAccessor<T, V>
-
Method Details
-
findField
@NotNull public static <T,V> @NotNull FieldAccessor<T,V> findField(@NotNull @NotNull Class<T> clazz, @NotNull @NotNull String name, @NotNull @NotNull Class<V> valueClass) -
findField
@NotNull public static <T,V> @NotNull FieldAccessor<T,V> findField(@NotNull @NotNull Class<T> clazz, @NotNull @NotNull String[] names, @NotNull @NotNull Class<V> valueClass) -
findConstructorOrThrow
@NotNull public static <T> @NotNull ConstructorAccessor<T> findConstructorOrThrow(@NotNull @NotNull Class<T> clazz, @NotNull @NotNull Class<?>... args) -
findConstructor
@Nullable public static <T> @Nullable ConstructorAccessor<T> findConstructor(@NotNull @NotNull Class<T> clazz, @NotNull @NotNull Class<?>... args) -
findEmptyConstructor
@NotNull public static <T> @NotNull PacketConstructor<T> findEmptyConstructor(@NotNull @NotNull Class<T> packetClass)
-