public final class MethodUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.reflect.Method |
getMethod(java.lang.Class clazz,
java.lang.String methodName,
java.lang.Class... paramTypes) |
static boolean |
isGetter(java.lang.reflect.Method method)
Determines if the method is a getter.
|
static java.lang.Boolean |
isIgnored(java.lang.reflect.Method method)
For practical reasons (e.g preventing stack overflow while serializing recursively) we have to
ignore some of the built-in getters.
|
static boolean |
isSetter(java.lang.reflect.Method method)
Determines if the method is a setter.
|
public static boolean isGetter(java.lang.reflect.Method method)
method - an arbitrary methodtrue if method is a getterpublic static boolean isSetter(java.lang.reflect.Method method)
method - an arbitrary methodtrue if method is a setterpublic static java.lang.Boolean isIgnored(java.lang.reflect.Method method)
method - an arbitrary methodtrue if the given method is ignoredpublic static java.lang.reflect.Method getMethod(java.lang.Class clazz,
java.lang.String methodName,
java.lang.Class... paramTypes)
clazz - the class to find the method inmethodName - the name of the methodparamTypes - the types of the parameters of the methodclazz with the name methodName or
null if no such method exists