Class ReflectionResolver
java.lang.Object
net.flectone.pulse.processing.resolver.ReflectionResolver
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanvoidhasClassOrElse(String className, boolean needChecking, Consumer<LibraryResolver> libraryConsumer) voidhasClassOrElse(String className, Consumer<LibraryResolver> libraryConsumer) booleanbooleanisFolia()booleanisPaper()@Nullable Class<?> resolveClass(String className) @Nullable MethodresolveMethod(@NonNull Class<?> clazz, @NonNull String methodName, Class<?>... parameterTypes) @Nullable MethodHandleunreflect(ReflectionResolver.HandleFunction<MethodHandles.Lookup, MethodHandle> handleFunction) @Nullable MethodHandleunreflectMethod(@NonNull Class<?> clazz, @NonNull String methodName, Class<?>... parameterTypes) @Nullable MethodHandleunreflectMethod(@Nullable Method method)
-
Constructor Details
-
ReflectionResolver
-
-
Method Details
-
hasClass
-
hasClass
-
hasClassOrElse
-
hasClassOrElse
public void hasClassOrElse(String className, boolean needChecking, Consumer<LibraryResolver> libraryConsumer) -
resolveClass
-
hasMethod
-
resolveMethod
-
unreflectMethod
public @Nullable MethodHandle unreflectMethod(@NonNull Class<?> clazz, @NonNull String methodName, Class<?>... parameterTypes) -
unreflectMethod
-
unreflect
public @Nullable MethodHandle unreflect(ReflectionResolver.HandleFunction<MethodHandles.Lookup, MethodHandle> handleFunction) -
isPaper
public boolean isPaper() -
isFolia
public boolean isFolia()
-