Atitit apache 和guava的反射工具
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:1466519819@qq.com
轉載請注明來源: http://www.cnblogs.com/attilax/
Atiend
