CommandSubstituteSignature

public class CommandSubstituteSignature extends CommandAcceptingSignature<H>

A signature of CommandSubstituteMethod.

Functions

Link copied to clipboard
Creates the HandlerMethod instance according to the passed raw method and the parameter specification.
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()
Returns ThrowableMessage.class wrapped into Optional.
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
public boolean mayReturnIgnored()
Tells that a command-accepting method never returns an ignored result.
Link copied to clipboard
Obtains the set of recommended access modifiers for the method.
Link copied to clipboard
public abstract AllowedParams<E> params()
Obtains the specification of handler parameters to meet.