public class MethodKit extends Object
Constructor and Description |
---|
MethodKit() |
Modifier and Type | Method and Description |
---|---|
static void |
addExtensionMethod(Class<?> targetClass,
Class<?> extensionClass) |
static void |
addExtensionMethod(Class<?> targetClass,
Object objectOfExtensionClass) |
static void |
addForbiddenMethod(String methodName) |
static MethodInfo |
getGetterMethod(Long key,
Class<?> targetClass,
String methodName)
获取 getter 方法
使用与 Field 相同的 key,避免生成两次 key值
|
static MethodInfo |
getMethod(Class<?> targetClass,
String methodName,
Object[] argValues) |
static boolean |
isForbiddenClass(Class<?> clazz) |
static boolean |
isForbiddenMethod(String methodName) |
static void |
removeExtensionMethod(Class<?> targetClass,
Class<?> extensionClass) |
static void |
removeExtensionMethod(Class<?> targetClass,
Object objectOfExtensionClass) |
public static boolean isForbiddenClass(Class<?> clazz)
public static boolean isForbiddenMethod(String methodName)
public static void addForbiddenMethod(String methodName)
public static MethodInfo getMethod(Class<?> targetClass, String methodName, Object[] argValues)
public static MethodInfo getGetterMethod(Long key, Class<?> targetClass, String methodName)
public static void addExtensionMethod(Class<?> targetClass, Object objectOfExtensionClass)
public static void addExtensionMethod(Class<?> targetClass, Class<?> extensionClass)
public static void removeExtensionMethod(Class<?> targetClass, Object objectOfExtensionClass)
Copyright © 2018. All rights reserved.