public class MethodInvoker<SENDER> extends java.lang.Object implements AnnotationInvoker<SENDER>, dev.rollczi.litecommands.meta.MetaHolder
| Constructor and Description |
|---|
MethodInvoker(AnnotationProcessorService<SENDER> annotationProcessorService,
MethodValidatorService<SENDER> validatorService,
java.lang.Object instance,
java.lang.reflect.Method method,
dev.rollczi.litecommands.command.builder.CommandBuilder<SENDER> commandBuilder) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.reflect.Method |
getMethod() |
dev.rollczi.litecommands.command.builder.CommandBuilder<SENDER> |
getResult() |
MethodInvoker<SENDER> |
mapParameter(java.util.function.BiFunction<java.lang.reflect.Parameter,java.lang.annotation.Annotation,java.util.Optional<dev.rollczi.litecommands.requirement.Requirement<?>>> provider) |
dev.rollczi.litecommands.meta.Meta |
meta() |
<A extends java.lang.annotation.Annotation> |
on(java.lang.Class<A> annotationType,
AnnotationProcessor.AnyListener<A> listener) |
<A extends java.lang.annotation.Annotation> |
onMethod(java.lang.Class<A> annotationType,
AnnotationProcessor.MethodListener<SENDER,A> listener) |
<A extends java.lang.annotation.Annotation> |
onParameter(java.lang.Class<A> annotationType,
AnnotationProcessor.ParameterListener<SENDER,A> listener) |
@Nullable dev.rollczi.litecommands.meta.MetaHolder |
parentMeta() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonClass, onParameterRequirementpublic MethodInvoker(AnnotationProcessorService<SENDER> annotationProcessorService, MethodValidatorService<SENDER> validatorService, java.lang.Object instance, java.lang.reflect.Method method, dev.rollczi.litecommands.command.builder.CommandBuilder<SENDER> commandBuilder)
public <A extends java.lang.annotation.Annotation> AnnotationInvoker<SENDER> on(java.lang.Class<A> annotationType, AnnotationProcessor.AnyListener<A> listener)
on in interface AnnotationInvoker<SENDER>public <A extends java.lang.annotation.Annotation> AnnotationInvoker<SENDER> onMethod(java.lang.Class<A> annotationType, AnnotationProcessor.MethodListener<SENDER,A> listener)
onMethod in interface AnnotationInvoker<SENDER>public <A extends java.lang.annotation.Annotation> AnnotationInvoker<SENDER> onParameter(java.lang.Class<A> annotationType, AnnotationProcessor.ParameterListener<SENDER,A> listener)
onParameter in interface AnnotationInvoker<SENDER>@ApiStatus.Experimental public MethodInvoker<SENDER> mapParameter(java.util.function.BiFunction<java.lang.reflect.Parameter,java.lang.annotation.Annotation,java.util.Optional<dev.rollczi.litecommands.requirement.Requirement<?>>> provider)
@ApiStatus.Experimental public java.lang.reflect.Method getMethod()
public dev.rollczi.litecommands.command.builder.CommandBuilder<SENDER> getResult()
getResult in interface AnnotationInvoker<SENDER>public dev.rollczi.litecommands.meta.Meta meta()
meta in interface dev.rollczi.litecommands.meta.MetaHolder@Nullable public @Nullable dev.rollczi.litecommands.meta.MetaHolder parentMeta()
parentMeta in interface dev.rollczi.litecommands.meta.MetaHolder