类 DSLDefinedCommand

java.lang.Object
com.tlcsdm.core.dsl.commands.DSLDefinedCommand

public class DSLDefinedCommand extends Object
从以下版本开始:
Jan, 17th, 2017
作者:
Konloch
  • 字段详细资料

  • 构造器详细资料

    • DSLDefinedCommand

      public DSLDefinedCommand(String name, VariableRunnable variableRunnable)
      Creates a new DSLDefinedCommand and defines it as a variable.
      参数:
      name - any String as the variable name
      variableRunnable - any VariableRunnable
    • DSLDefinedCommand

      public DSLDefinedCommand(String name, FunctionRunnable functionRunnable)
      Constructs a new DSLDefinedCommand and defines it as a function.
      参数:
      name - any String as the variable name
      functionRunnable - any FunctionalRunnable
  • 方法详细资料

    • getType

      public DSLCommandType getType()
      Returns the type
      返回:
      the defined DSLCommandType type
    • getName

      public String getName()
      Returns the name
      返回:
      the defined String name
    • getVariableRunnable

      public VariableRunnable 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

      public FunctionRunnable 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