public class ActionExecuteHandlerDefault extends Object implements ActionExecuteHandler
Action#callDo(Context, Object, MethodWrap)| 构造器和说明 |
|---|
ActionExecuteHandlerDefault() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected List<Object> |
buildArgs(Context ctx,
Object target,
MethodWrap mWrap)
构建执行参数
|
protected Object |
changeBody(Context ctx,
MethodWrap mWrap)
尝试将body转换为特定对象
|
protected Object |
changeEntityDo(Context ctx,
ParamWrap p,
String name,
Class<?> type)
尝试将值转换为目标实体
|
protected Object |
changeValue(Context ctx,
ParamWrap p,
int pi,
Class<?> pt,
Object bodyObj)
尝试将值按类型转换
|
protected Object |
changeValueDo(Context ctx,
ParamWrap p,
String name,
Class<?> type,
String value)
尝试将值转换为目标值
|
Object |
executeHandle(Context ctx,
Object obj,
MethodWrap mWrap)
执行
|
boolean |
matched(Context ctx,
String ct)
是否匹配
|
public boolean matched(Context ctx, String ct)
matched 在接口中 ActionExecuteHandlerctx - 上下文ct - 内容类型public Object executeHandle(Context ctx, Object obj, MethodWrap mWrap) throws Throwable
executeHandle 在接口中 ActionExecuteHandlerctx - 上下文obj - 控制器mWrap - 函数包装器Throwableprotected List<Object> buildArgs(Context ctx, Object target, MethodWrap mWrap) throws Exception
ctx - 上下文Exceptionprotected Object changeBody(Context ctx, MethodWrap mWrap) throws Exception
Exceptionprotected Object changeValue(Context ctx, ParamWrap p, int pi, Class<?> pt, Object bodyObj) throws Exception
Exceptionprotected Object changeValueDo(Context ctx, ParamWrap p, String name, Class<?> type, String value)
Copyright © 2023. All rights reserved.