Module com.wyu4.snowberryjam
Class InputMacro
java.lang.Object
com.wyu4.snowberryjam.compiler.data.tasks.SetTask
com.wyu4.snowberryjam.compiler.data.tasks.macros.InputMacro
- All Implemented Interfaces:
ExecutableTask,NamedTask,ValuedTask
A macro that sets a variable to a user input. The name of the variable is stored as
SourceKey.NAME.-
Constructor Summary
ConstructorsConstructorDescriptionInputMacro(com.fasterxml.jackson.databind.JsonNode node) Create a new set statementInputMacro(ValueHolder name) Create a new set statement -
Method Summary
-
Constructor Details
-
InputMacro
public InputMacro(com.fasterxml.jackson.databind.JsonNode node) Create a new set statement- Parameters:
node- TheJsonNodeto refer
-
InputMacro
Create a new set statement- Parameters:
name- The name of the variable to set
-
-
Method Details
-
execute
public void execute()Description copied from interface:ExecutableTaskRun the task- Specified by:
executein interfaceExecutableTask- Overrides:
executein classSetTask
-