Package dev.rollczi.litecommands.factory
Interface FactoryAnnotationResolver<A extends Annotation>
public interface FactoryAnnotationResolver<A extends Annotation>
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Annotation>
FactoryAnnotationResolver<T>of(Class<T> type, BiFunction<T, CommandState, CommandState> resolver) static <T extends Annotation>
FactoryAnnotationResolver<T>ofOption(Class<T> type, BiFunction<T, CommandState, panda.std.Option<CommandState>> resolver) panda.std.Option<CommandState>resolve(A annotation, CommandState state) default panda.std.Option<CommandState>tryResolve(Annotation annotation, CommandState state)
-
Method Details
-
resolve
-
tryResolve
-
getAnnotationClass
-
of
static <T extends Annotation> FactoryAnnotationResolver<T> of(Class<T> type, BiFunction<T, CommandState, CommandState> resolver) -
ofOption
static <T extends Annotation> FactoryAnnotationResolver<T> ofOption(Class<T> type, BiFunction<T, CommandState, panda.std.Option<CommandState>> resolver)
-