net.neoremind.dynamicproxy.util
类 ReflectionUtil
java.lang.Object
net.neoremind.dynamicproxy.util.ReflectionUtil
public class ReflectionUtil
- extends Object
- 作者:
- zhangxu
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReflectionUtil
public ReflectionUtil()
hasSuperClass
public static boolean hasSuperClass(Class<?> clazz)
- 判断是否有超类
- 参数:
clazz - 目标类
- 返回:
- 如果有返回
true,否则返回false
getMethod
public static Method getMethod(Class<?> clazz,
String methodName,
Class<?>... parameterTypes)
getMethod
public static Method getMethod(Object object,
String methodName,
Class<?>... parameterTypes)
newInstance
public static <T> T newInstance(Class<T> clazz)
getAllConstructorsOfClass
public static Constructor<?>[] getAllConstructorsOfClass(Class<?> clazz,
boolean accessible)
Copyright © 2016 neoremind. All rights reserved.