public class MethodResolver extends Object
Constructor and Description |
---|
MethodResolver() |
Modifier and Type | Method and Description |
---|---|
static Map<Class,Set<Class>> |
getWideningConversions()
Returns the allowable widening conversions.
|
static Constructor |
resolveCtor(Class declaringClass,
Class[] paramTypes) |
static Method |
resolveMethod(Class declaringClass,
String methodName,
Class[] paramTypes,
boolean allowInstance,
boolean[] allowEventBeanType,
boolean[] allowEventBeanCollType)
Attempts to find the static or instance method described by the parameters,
or a method of the same name that will accept the same type of
parameters.
|
public static Map<Class,Set<Class>> getWideningConversions()
public static Method resolveMethod(Class declaringClass, String methodName, Class[] paramTypes, boolean allowInstance, boolean[] allowEventBeanType, boolean[] allowEventBeanCollType) throws EngineNoSuchMethodException
declaringClass
- - the class to search for the methodmethodName
- - the name of the methodparamTypes
- - the parameter types for the methodallowInstance
- - true to allow instance methods as well, false to allow only static methodallowEventBeanCollType
- whether event-bean-collection parameter type is allowedallowEventBeanType
- whether event-bean parameter type is allowedEngineNoSuchMethodException
- if the method could not be foundpublic static Constructor resolveCtor(Class declaringClass, Class[] paramTypes) throws EngineNoSuchCtorException
EngineNoSuchCtorException