Class ReflectUtil

java.lang.Object
net.megavex.scoreboardlibrary.implementation.packetAdapter.util.reflect.ReflectUtil

public final class ReflectUtil extends Object
  • Method Details

    • getClassOrThrow

      @NotNull public static @NotNull Class<?> getClassOrThrow(String... names)
    • getOptionalClass

      @Nullable public static @Nullable Class<?> getOptionalClass(String... names)
    • getEnumInstance

      @NotNull public static @NotNull Object getEnumInstance(@NotNull @NotNull Class<?> clazz, @NotNull @NotNull String... names)
    • 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 ConstructorAccessor<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)
    • hasClass

      public static boolean hasClass(String className)