org.apache.isis.core.progmodel.facets
Class MethodFinderUtils
java.lang.Object
org.apache.isis.core.progmodel.facets.MethodFinderUtils
public final class MethodFinderUtils
- extends Object
|
Method Summary |
static boolean |
allParametersOfSameType(Class<?>[] params)
|
protected static boolean |
doesNotMatchScope(org.apache.isis.core.metamodel.methodutils.MethodScope methodScope,
Method method)
|
static Method |
findMethod(Class<?> type,
org.apache.isis.core.metamodel.methodutils.MethodScope methodScope,
String name,
Class<?> returnType)
|
static Method |
findMethod(Class<?> type,
org.apache.isis.core.metamodel.methodutils.MethodScope methodScope,
String name,
Class<?> returnType,
Class<?>[] paramTypes)
Returns a specific public methods that: have the specified prefix; have the specified return type, or void, if
canBeVoid is true; and has the specified number of parameters. |
static Method |
findMethodWithOrWithoutParameters(Class<?> type,
org.apache.isis.core.metamodel.methodutils.MethodScope classMethod,
String name,
Class<?> returnType,
Class<?>[] paramTypes)
|
static Class<?>[] |
paramTypesOrNull(Class<?> type)
|
static void |
removeMethod(org.apache.isis.core.metamodel.facetapi.MethodRemover methodRemover,
Method method)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
findMethodWithOrWithoutParameters
public static Method findMethodWithOrWithoutParameters(Class<?> type,
org.apache.isis.core.metamodel.methodutils.MethodScope classMethod,
String name,
Class<?> returnType,
Class<?>[] paramTypes)
findMethod
public static Method findMethod(Class<?> type,
org.apache.isis.core.metamodel.methodutils.MethodScope methodScope,
String name,
Class<?> returnType,
Class<?>[] paramTypes)
- Returns a specific public methods that: have the specified prefix; have the specified return type, or void, if
canBeVoid is true; and has the specified number of parameters. If the returnType is specified as null then the
return type is ignored.
- Parameters:
paramTypes - the set of parameters the method should have, if null then is ignored
doesNotMatchScope
protected static boolean doesNotMatchScope(org.apache.isis.core.metamodel.methodutils.MethodScope methodScope,
Method method)
findMethod
public static Method findMethod(Class<?> type,
org.apache.isis.core.metamodel.methodutils.MethodScope methodScope,
String name,
Class<?> returnType)
removeMethod
public static void removeMethod(org.apache.isis.core.metamodel.facetapi.MethodRemover methodRemover,
Method method)
paramTypesOrNull
public static Class<?>[] paramTypesOrNull(Class<?> type)
allParametersOfSameType
public static boolean allParametersOfSameType(Class<?>[] params)
Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.