public class UtilAction extends Object
| 构造器和说明 |
|---|
UtilAction() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getActionCodeFilePath(Thing actionThing,
String ext)
获取一个动作的代码文件名。
|
static boolean |
getDebugLog(Thing actionThing,
ActionContext actionContext)
返回是否是打印调试日志。
|
static Bindings |
getVarScope(String varScope,
ActionContext actionContext)
通过VarScope的字符串返回相应的Scope,如Gloabl, Local等。
|
static Bindings |
getVarScope(Thing action,
ActionContext actionContext)
获取变量范围。
|
static void |
putVarByActioScope(Thing action,
String varName,
Object var,
ActionContext actionContext)
把变量赋值到动作定义的变量范围中。
|
public static String getActionCodeFilePath(Thing actionThing, String ext)
actionThing - 动作事物ext - 代码文件的后缀public static void putVarByActioScope(Thing action, String varName, Object var, ActionContext actionContext)
action - 动作事物varName - 变量名var - 变量值actionContext - 变量上下文public static Bindings getVarScope(Thing action, ActionContext actionContext)
action - 动作actionContext - 变量上下文public static Bindings getVarScope(String varScope, ActionContext actionContext)
varScope - 变量范围actionContext - 变量上下文public static boolean getDebugLog(Thing actionThing, ActionContext actionContext)
actionThing - 动作事物actionContext - 变量上下文Copyright © 2016 xworker.org. All rights reserved.