Class AnnotationHelper
java.lang.Object
studio.mevera.imperat.annotations.base.AnnotationHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull OptionalValueSupplierdeduceOptionalValueSupplier(ParameterElement parameter, Default defaultAnnotation, DefaultProvider provider, OptionalValueSupplier fallback) static @NotNull OptionalValueSuppliergetOptionalValueSupplier(Class<? extends OptionalValueSupplier> supplierClass) getParamName(ImperatConfig<S> imperat, ParameterElement parameter) getParamName(ImperatConfig<S> imperat, ParameterElement parameter, @Nullable Named named, @Nullable Flag flag, @Nullable Switch switchAnnotation) static booleanisAbnormalClass(Class<?> element) static booleanisAbnormalClass(ParseElement<?> parseElement) loadParameterInstances(Imperat<S> dispatcher, List<CommandParameter<S>> fullParameters, S source, ExecutionContext<S> context, MethodElement method)
-
Constructor Details
-
AnnotationHelper
public AnnotationHelper()
-
-
Method Details
-
loadParameterInstances
public static <S extends Source> Object[] loadParameterInstances(Imperat<S> dispatcher, List<CommandParameter<S>> fullParameters, S source, ExecutionContext<S> context, MethodElement method) throws ImperatException - Throws:
ImperatException
-
getParamName
@NotNull public static <S extends Source> @NotNull String getParamName(ImperatConfig<S> imperat, ParameterElement parameter, @Nullable @Nullable Named named, @Nullable @Nullable Flag flag, @Nullable @Nullable Switch switchAnnotation) -
getParamName
@NotNull public static <S extends Source> @NotNull String getParamName(ImperatConfig<S> imperat, ParameterElement parameter) -
getOptionalValueSupplier
@NotNull public static @NotNull OptionalValueSupplier getOptionalValueSupplier(Class<? extends OptionalValueSupplier> supplierClass) throws NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException -
deduceOptionalValueSupplier
@NotNull public static @NotNull OptionalValueSupplier deduceOptionalValueSupplier(ParameterElement parameter, Default defaultAnnotation, DefaultProvider provider, OptionalValueSupplier fallback) throws ImperatException - Throws:
ImperatException
-
isAbnormalClass
-
isAbnormalClass
-