Class MethodInvoker<SENDER>
java.lang.Object
dev.rollczi.litecommands.annotations.MethodInvoker<SENDER>
- All Implemented Interfaces:
AnnotationInvoker<SENDER>,dev.rollczi.litecommands.meta.MetaHolder
public class MethodInvoker<SENDER>
extends Object
implements AnnotationInvoker<SENDER>, dev.rollczi.litecommands.meta.MetaHolder
-
Constructor Summary
ConstructorsConstructorDescriptionMethodInvoker(AnnotationProcessorService<SENDER> annotationProcessorService, MethodValidatorService<SENDER> validatorService, Object instance, Method method, dev.rollczi.litecommands.command.builder.CommandBuilder<SENDER> commandBuilder) -
Method Summary
Modifier and TypeMethodDescriptiondev.rollczi.litecommands.command.builder.CommandBuilder<SENDER> mapParameter(BiFunction<Parameter, Annotation, Optional<dev.rollczi.litecommands.requirement.Requirement<?>>> provider) dev.rollczi.litecommands.meta.Metameta()<A extends Annotation>
AnnotationInvoker<SENDER> on(Class<A> annotationType, AnnotationProcessor.AnyListener<A> listener) <A extends Annotation>
AnnotationInvoker<SENDER> onMethod(Class<A> annotationType, AnnotationProcessor.MethodListener<SENDER, A> listener) <A extends Annotation>
AnnotationInvoker<SENDER> onParameter(Class<A> annotationType, AnnotationProcessor.ParameterListener<SENDER, A> listener) @Nullable dev.rollczi.litecommands.meta.MetaHolderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.rollczi.litecommands.annotations.AnnotationInvoker
onClass, onParameterRequirementMethods inherited from interface dev.rollczi.litecommands.meta.MetaHolder
metaCollector
-
Constructor Details
-
MethodInvoker
public MethodInvoker(AnnotationProcessorService<SENDER> annotationProcessorService, MethodValidatorService<SENDER> validatorService, Object instance, Method method, dev.rollczi.litecommands.command.builder.CommandBuilder<SENDER> commandBuilder)
-
-
Method Details
-
on
public <A extends Annotation> AnnotationInvoker<SENDER> on(Class<A> annotationType, AnnotationProcessor.AnyListener<A> listener) - Specified by:
onin interfaceAnnotationInvoker<SENDER>
-
onMethod
public <A extends Annotation> AnnotationInvoker<SENDER> onMethod(Class<A> annotationType, AnnotationProcessor.MethodListener<SENDER, A> listener) - Specified by:
onMethodin interfaceAnnotationInvoker<SENDER>
-
onParameter
public <A extends Annotation> AnnotationInvoker<SENDER> onParameter(Class<A> annotationType, AnnotationProcessor.ParameterListener<SENDER, A> listener) - Specified by:
onParameterin interfaceAnnotationInvoker<SENDER>
-
mapParameter
@Experimental public MethodInvoker<SENDER> mapParameter(BiFunction<Parameter, Annotation, Optional<dev.rollczi.litecommands.requirement.Requirement<?>>> provider) -
getMethod
-
getResult
- Specified by:
getResultin interfaceAnnotationInvoker<SENDER>
-
meta
public dev.rollczi.litecommands.meta.Meta meta()- Specified by:
metain interfacedev.rollczi.litecommands.meta.MetaHolder
-
parentMeta
@Nullable public @Nullable dev.rollczi.litecommands.meta.MetaHolder parentMeta()- Specified by:
parentMetain interfacedev.rollczi.litecommands.meta.MetaHolder
-