CommandReactionSignature

A signature of CommandReactionMethod.

Functions

Link copied to clipboard
Creates the HandlerMethod instance according to the passed raw method and the parameter specification.
Link copied to clipboard
public boolean mayReturnIgnored()
Tells that the method may state that a reaction isn't needed by returning DoNothing.
Link copied to clipboard
Obtains the specification of handler parameters to meet.
Link copied to clipboard
Obtains the set of valid return types.
Link copied to clipboard
protected boolean skipMethod(Method method)
Determines, if the given raw method} should be skipped as non-matching.

Inherited functions

Link copied to clipboard
protected Optional<Class<? extends Throwable>> allowedThrowable()
Obtains the type of a Throwable which a method can declare.
Link copied to clipboard
public final Class<? extends Annotation> annotation()
Obtains the annotation, which is required to be declared for the matched raw method.
Link copied to clipboard
public final Optional<H> classify(Method method)
Creates a handler method from a raw method, if the passed method matches the signature.
Link copied to clipboard
public final Collection<SignatureMismatch> match(Method method)
Match the method against the criteria and obtain a collection of mismatches, if any.
Link copied to clipboard
public final boolean matches(Method method)
Checks whether the passed method matches the constraints set by this MethodSignature instance.
Link copied to clipboard
Obtains the set of recommended access modifiers for the method.