类 ReflectiveMethodAccessor
- 所有已实现的接口:
Accessor,Invoker,MethodAccessor
Method implementation- 作者:
- TODAY 2020/9/20 21:49
-
嵌套类概要
从类继承的嵌套类/接口 cn.taketoday.reflect.MethodInvoker
MethodInvoker.MethodInvokerCacheKey, MethodInvoker.MethodInvokerGenerator -
字段概要
字段 -
构造器概要
构造器 -
方法概要
从类继承的方法 cn.taketoday.reflect.MethodInvoker
formReflective, formReflective, fromMethod, fromMethod, fromMethod, getMethod从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cn.taketoday.reflect.MethodAccessor
getMethod
-
字段详细资料
-
handleReflectionException
private final boolean handleReflectionException
-
-
构造器详细资料
-
ReflectiveMethodAccessor
ReflectiveMethodAccessor(Method method, boolean handleReflectionException)
-
-
方法详细资料
-
invoke
从类复制的说明:MethodInvokerInvokes the underlying method represented by thisInvokerobject, on the specified object with the specified parameters. Individual parameters are automatically unwrapped to match primitive formal parameters, and both primitive and reference parameters are subject to method invocation conversions as necessary.If the underlying method is static, then the specified
objargument is ignored. It may be null.If the number of formal parameters required by the underlying method is 0, the supplied
argsarray may be of length 0 or null.If the underlying method is static, the class that declared the method is initialized if it has not already been initialized.
If the method completes normally, the value it returns is returned to the caller of invoke; if the value has a primitive type, it is first appropriately wrapped in an object. However, if the value has the type of array of a primitive type, the elements of the array are not wrapped in objects; in other words, an array of primitive type is returned. If the underlying method return type is void, the invocation returns null.
- 指定者:
invoke在接口中Invoker- 指定者:
invoke在类中MethodInvoker- 参数:
obj- the object the underlying method is invoked fromargs- the arguments used for the method call- 返回:
- the result of dispatching the method represented by
this object on
objwith parametersargs
-