Atitit apache 和guava的反射工具

來源:互聯網
上載者:User

標籤:ued   ram   nbsp   tun   漢字   sha   handle   lex   illegal   

Atitit apache 和guava的反射工具

 

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

 

Atitit apache 和guava的反射工具

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.