public interface Behavior
Method和Constructorsandbox-api:1.0.10| 限定符和类型 | 接口和说明 |
|---|---|
static class |
Behavior.ConstructorImpl
构造函数实现
|
static class |
Behavior.MethodImpl
类实现
|
| 限定符和类型 | 方法和说明 |
|---|---|
Annotation[] |
getAnnotations() |
Annotation[] |
getDeclaredAnnotations() |
Class<?> |
getDeclaringClass() |
Class<?>[] |
getExceptionTypes() |
Type |
getGenericReturnType() |
int |
getModifiers() |
String |
getName() |
Class<?>[] |
getParameterTypes() |
Class<?> |
getReturnType() |
AccessibleObject |
getTarget()
获取被封装的目标对象: Method/Constructor
|
Object |
invoke(Object obj,
Object... args) |
boolean |
isAccessible() |
void |
setAccessible(boolean accessFlag) |
Object invoke(Object obj, Object... args) throws IllegalAccessException, InvocationTargetException, InstantiationException
boolean isAccessible()
void setAccessible(boolean accessFlag)
String getName()
Class<?>[] getParameterTypes()
Annotation[] getAnnotations()
int getModifiers()
Class<?> getDeclaringClass()
Class<?> getReturnType()
Type getGenericReturnType()
sandbox-api:1.4.0Method.getGenericReturnType()Class<?>[] getExceptionTypes()
Annotation[] getDeclaredAnnotations()
AccessibleObject getTarget()
sandbox-api:1.2.2Copyright © 2023 Alibaba Open Source. All rights reserved.