Class ReflectUtil
java.lang.Object
net.megavex.scoreboardlibrary.implementation.packetAdapter.util.reflect.ReflectUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> @NotNull ConstructorAccessor<T> findConstructor(@NotNull Class<T> clazz, @NotNull Class<?>... args) static <T,V> @NotNull FieldAccessor <T, V> findFieldUnchecked(@NotNull Class<?> clazz, int index, @NotNull Class<?> valueClass) static <T,V> @NotNull FieldAccessor <T, V> findFieldUnchecked(@NotNull Class<?> clazz, int index, @NotNull Class<?> valueClass, boolean isStatic) static @NotNull MethodAccessorfindMethod(@NotNull Class<?> clazz, boolean isStatic, @NotNull MethodType methodType, @NotNull String... names) static <T> @Nullable ConstructorAccessor<T> findOptionalConstructor(@NotNull Class<T> clazz, @NotNull Class<?>... args) static <T> @Nullable MethodAccessorfindOptionalMethod(@NotNull Class<T> clazz, boolean isStatic, @NotNull MethodType methodType, @NotNull String... names) static @NotNull Class<?> getClassOrThrow(String... names) static <T> @NotNull PacketConstructor<T> getEmptyConstructor(@NotNull Class<T> packetClass) static @NotNull ObjectgetEnumInstance(@NotNull Class<?> clazz, @NotNull String... names) static @Nullable Class<?> getOptionalClass(String... names)
-
Method Details
-
getClassOrThrow
-
getOptionalClass
-
getEnumInstance
-
findFieldUnchecked
@NotNull public static <T,V> @NotNull FieldAccessor<T,V> findFieldUnchecked(@NotNull @NotNull Class<?> clazz, int index, @NotNull @NotNull Class<?> valueClass) -
findFieldUnchecked
@NotNull public static <T,V> @NotNull FieldAccessor<T,V> findFieldUnchecked(@NotNull @NotNull Class<?> clazz, int index, @NotNull @NotNull Class<?> valueClass, boolean isStatic) -
findOptionalConstructor
@Nullable public static <T> @Nullable ConstructorAccessor<T> findOptionalConstructor(@NotNull @NotNull Class<T> clazz, @NotNull @NotNull Class<?>... args) -
findConstructor
@NotNull public static <T> @NotNull ConstructorAccessor<T> findConstructor(@NotNull @NotNull Class<T> clazz, @NotNull @NotNull Class<?>... args) -
getEmptyConstructor
@NotNull public static <T> @NotNull PacketConstructor<T> getEmptyConstructor(@NotNull @NotNull Class<T> packetClass) -
findMethod
@NotNull public static @NotNull MethodAccessor findMethod(@NotNull @NotNull Class<?> clazz, boolean isStatic, @NotNull @NotNull MethodType methodType, @NotNull @NotNull String... names) -
findOptionalMethod
@Nullable public static <T> @Nullable MethodAccessor findOptionalMethod(@NotNull @NotNull Class<T> clazz, boolean isStatic, @NotNull @NotNull MethodType methodType, @NotNull @NotNull String... names)
-