java.lang.Object
com.tlcsdm.core.dsl.commands.DSLDefinedCommand
- 从以下版本开始:
- Jan, 17th, 2017
- 作者:
- Konloch
-
字段概要
字段修饰符和类型字段说明private FunctionRunnableprivate final Stringprivate final DSLCommandTypeprivate VariableRunnable -
构造器概要
构造器构造器说明DSLDefinedCommand(String name, FunctionRunnable functionRunnable) Constructs a new DSLDefinedCommand and defines it as a function.DSLDefinedCommand(String name, VariableRunnable variableRunnable) Creates a new DSLDefinedCommand and defines it as a variable. -
方法概要
-
字段详细资料
-
type
-
name
-
variableRunnable
-
functionRunnable
-
-
构造器详细资料
-
DSLDefinedCommand
Creates a new DSLDefinedCommand and defines it as a variable.- 参数:
name- any String as the variable namevariableRunnable- any VariableRunnable
-
DSLDefinedCommand
Constructs a new DSLDefinedCommand and defines it as a function.- 参数:
name- any String as the variable namefunctionRunnable- any FunctionalRunnable
-
-
方法详细资料
-
getType
Returns the type- 返回:
- the defined DSLCommandType type
-
getName
Returns the name- 返回:
- the defined String name
-
getVariableRunnable
Returns the VariableRunnable if it's defined, or it will return null.- 返回:
- returns the VariableRunnable if it's defined, or it will return null
-
getFunctionRunnable
Returns the FunctionRunnable if it's defined, or it will return null- 返回:
- returns the FunctionRunnable if it's defined, or it will return null
-