java.lang.Object
com.tlcsdm.core.dsl.runtime.DSLRuntime
The DSLRuntime parses and executes Strings based on the supplied DSL.
- 从以下版本开始:
- Jan, 17th, 2017
- 作者:
- Konloch
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明buildRuntimeCommand(String line) Attempts to build a DSLRuntimeCommand from any String.voidexecute(DSLRuntimeCommand runtimeCommand) Executes a specific DLSRuntimeCommandReturns all the DLSRuntimeCommands created during runtime.getDSL()Returns the DSL linked with this DSLRuntime instance.voidAttempts to parse any String and runs it if it's part of the init, or else it will store the DLSRuntimeCommand under the read subscriptvoidSignal to the runtime that the parsing has stopped externally.
-
字段详细资料
-
dsl
-
commands
-
insideSubscript
-
-
构造器详细资料
-
DSLRuntime
Construct a new instance of the DSLRuntime- 参数:
dsl- any DSL
-
-
方法详细资料
-
stopParse
public void stopParse()Signal to the runtime that the parsing has stopped externally. -
parseLine
Attempts to parse any String and runs it if it's part of the init, or else it will store the DLSRuntimeCommand under the read subscript- 参数:
line- any String
-
execute
Executes a specific DLSRuntimeCommand- 参数:
runtimeCommand- any DLSRuntimeCommand
-
buildRuntimeCommand
Attempts to build a DSLRuntimeCommand from any String.- 参数:
line- any String- 返回:
- the DSLRuntimeCommand if it can be created, if not it will return null
-
getCommands
Returns all the DLSRuntimeCommands created during runtime.- 返回:
- the commands in the form of a HashMap
-
getDSL
Returns the DSL linked with this DSLRuntime instance.- 返回:
- the DSL instance
-