| java.lang.Object | |
| ↳ | com.davidluoye.support.util.Reflect |
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Reflect(Object instance) | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| <T> T |
call(Class<?> ownerClzz, String name, Class[]<?> parameterTypes, Object[] parameters, Class<T> returnType)
reflect a function and get the return value.
| ||||||||||
| <T> T |
call(String name, Class[]<?> parameterTypes, Object[] parameters, Class<T> returnType)
reflect a function and get the return value.
| ||||||||||
| static <T> T |
callStatic(Method method, Object[] parameters, Class<T> returnType)
reflect a static function and get the return value.
| ||||||||||
| <T extends Annotation> T |
getAnnotation(Class<T> annotationType)
reflect an annotation.
| ||||||||||
| <T> T |
getField(String name)
reflect a field and get the value.
| ||||||||||
| static <T> T |
getStaticField(Class<?> clzz, String name, Class<T> type)
reflect a static field.
| ||||||||||
| static Method | getStaticMethod(Class<?> clzz, String name, Class[]<?> parameterTypes) | ||||||||||
| boolean |
setField(String name, Object value)
set a class member by reflect
| ||||||||||
| static <T> T |
translate(Object obj)
for translate object translate a special type.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
reflect a function and get the return value.
reflect a function and get the return value.
reflect a static function and get the return value.
reflect an annotation.
reflect a field and get the value.
reflect a static field.
set a class member by reflect
for translate object translate a special type.