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