public final class MethodHelper
extends java.lang.Object
Method
.Modifier | Constructor and Description |
---|---|
private |
MethodHelper()
MethodHelper is utility class and will be never instantiated.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.reflect.Method |
getMethod(java.lang.Class<?> aOwnerClass,
Finds method on given class using specified parameters.
|
private static boolean |
methodMatches(java.lang.reflect.Method aMethod,
Checks if method matches given parameters.
|
Class.getMethod(String, Class...)
which throws exception if method is not found.aOwnerClass
- Class where to look for methodaMethodName
- Name of method to be searchedaParameterTypes
- Parameter types of method to be searchedClass.arrayContentsEq(Object[], Object[])
.aMethod
- Method to be matchedaMethodName
- Name of matching methodaParameterTypes
- Parameters of matching method