apache1
Spring的反射工具类 ReflectionUtils1
Guava 反射工具2
apache
34 7,340 ConstructorUtils.java
34 16,263 FieldUtils.java
34 4,918 MemberUtils.java
34 14,175 MethodUtils.java
34 30,316 TypeUtils.java
5 个文件 73,012 字节
Spring的反射工具类 ReflectionUtils
Field findField(Class<?> clazz, String name) {
Field findField(Class<?> clazz, String name, Class<?> type) {
void setField(Field field, Object target, Object value) {
Object getField(Field field, Object target) {
Method findMethod(Class<?> clazz, String name) {
Method findMethod(Class<?> clazz, String name, Class<?>... paramTypes) {
Object invokeMethod(Method method, Object target) {
Object invokeMethod(Method method, Object target, Object... args) {
Object invokeJdbcMethod(Method method, Object target) throws SQLException {
Object invokeJdbcMethod(Method method, Object target, Object... args) throws SQLException {
void handleReflectionException(Exception ex) {
void handleInvocationTargetException(InvocationTargetException ex) {
void rethrowRuntimeException(Throwable ex) {
void rethrowException(Throwable ex) throws Exception {
boolean declaresException(Method method, Class<?> exceptionType) {
boolean isEqualsMethod(Method method) {
boolean isHashCodeMethod(Method method) {
boolean isToStringMethod(Method method) {
boolean isObjectMethod(Method method) {
boolean isCglibRenamedMethod(Method renamedMethod) {
void makeAccessible(Field field) {
void makeAccessible(Method method) {
void makeAccessible(Constructor<?> ctor) {
void doWithMethods(Class<?> clazz, MethodCallback mc) throws IllegalArgumentException {
void doWithMethods(Class<?> clazz, MethodCallback mc, MethodFilter mf)
Method[] getAllDeclaredMethods(Class<?> leafClass) throws IllegalArgumentException {
public void doWith(Method method) {
Method[] getUniqueDeclaredMethods(Class<?> leafClass) throws IllegalArgumentException {
void doWithFields(Class<?> clazz, FieldCallback fc) throws IllegalArgumentException {
void doWithFields(Class<?> clazz, FieldCallback fc, FieldFilter ff)
void shallowCopyFieldState(final Object src, final Object dest) throws IllegalArgumentException {
public boolean matches(Field field) {
Guava 反射工具
Atitit. Class 元数据的反射操作 api apache 工具 - attilax的专栏 - 博客频道 - CSDN.NET.html
Atitit利用反射获取子类 集合 以及继承树 - attilax的专栏 - 博客频道 - CSDN.NET.html
Spring的反射工具类 ReflectionUtils - 好库文摘.html
google Guava包的reflection解析 _ 并发编程网 – ifeve.com.html
作者:: 绰号:老哇的爪子 ( 全名::Attilax Akbar Al Rapanui 阿提拉克斯 阿克巴 阿尔 拉帕努伊 )
汉字名:艾提拉(艾龙), EMAIL:[email protected]
转载请注明来源: http://www.cnblogs.com/attilax/
Atiend