MethodParams

public final class MethodParams

Provides information about parameters of a method.

Functions

Link copied to clipboard
public boolean are(Array<Class<? extends Object>> types)
Verifies if these parameters are exactly of the respective passed types.
Link copied to clipboard
public boolean equals(Object o)
Link copied to clipboard
Obtains the argument filter if it is specified for the first argument of this instance of method parameters.
Link copied to clipboard
public static boolean firstIsCommand(Method method)
Finds out if the first method parameter is a CommandMessage.
Link copied to clipboard
public int hashCode()
Link copied to clipboard
public boolean is(TypeMatcher type)
Verifies if the method has only one parameter matching the passed criterion.
Link copied to clipboard
public boolean match(Array<TypeMatcher> criteria)
public boolean match(List<TypeMatcher> criteria)
Verifies if these parameters satisfy the respective type matchers.
Link copied to clipboard
public static MethodParams of(SubscriberMethod method)
Obtains parameters of the subscriber method.
public static MethodParams of(Method method)
Obtains parameters from the passed method.
Link copied to clipboard
public int size()
Obtains the number of parameters passed to the method.
Link copied to clipboard
public String toString()
Link copied to clipboard
public Class<? extends Object> type(int index)
Obtains the type of the method parameter.