Atitit Apache and Guava reflex tools

Source: Internet
Author: User
Tags throwable google guava

Atitit Apache and guava reflex Tools

Apache 1

Spring 's Reflection tool class reflectionutils 1

Guava Reflection tool 2

Apache

7,340 Constructorutils.java

16,263 Fieldutils.java

4,918 Memberutils.java

14,175 Methodutils.java

30,316 Typeutils.java

5 files 73,012 bytes

Spring 's Reflection tool class 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, object target) {

Object InvokeMethod (method, Object target, Object ... args) {

Object Invokejdbcmethod (method, Object target) throws SQLException {

Object Invokejdbcmethod (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, class<?> exceptiontype) {

Boolean Isequalsmethod (method) {

Boolean Ishashcodemethod (method) {

Boolean Istostringmethod (method) {

Boolean Isobjectmethod (method) {

Boolean Iscglibrenamedmethod (Method renamedmethod) {

void makeaccessible (Field field) {

void Makeaccessible (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 Reflection tool

Atitit. Class Metadata Reflection operations API Apache tool -attilax column - Blog channel -CS Dn. Net.html

Atitit using reflection to get a collection of subclasses and inheritance trees -Attilax 's Column - Blog Channel -CSDN.NET.html

Spring 's Reflection tool class reflectionutils- Good Library digest . HTML

Google Guava package reflection Parsing _ Concurrent Programming Network- ifeve.com.html

author::  Nickname :Old Wow's claws( Full Name::AttilaxAkbar Al Rapanui Attilaksachanui) 

Kanji Name: Etila ( Ayron) , email:[email protected]

reprint Please indicate source: http://www.cnblogs.com/attilax/

Atiend

Atitit Apache and guava reflection tools

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.