java.lang.Object
com.wyu4.snowberryjam.compiler.data.tasks.PrintTask
- All Implemented Interfaces:
ExecutableTask,ValuedTask
A print statement. The message is stored as
SourceKey.VALUE. Unless there's something wrong with the ValueHolder or LocalStorage classes, this class is guaranteed to never throw an error.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPrintTask(com.fasterxml.jackson.databind.JsonNode node) Create a new print statement.PrintTask(ValueHolder message) Create a new print statement.Create a new print statement. -
Method Summary
-
Field Details
-
message
The message. Can be any type.
-
-
Constructor Details
-
PrintTask
public PrintTask(com.fasterxml.jackson.databind.JsonNode node) Create a new print statement.- Parameters:
node- TheJsonNodeto refer
-
PrintTask
Create a new print statement.- Parameters:
message- the message to print
-
PrintTask
Create a new print statement.- Parameters:
message-ValueHolderpointing to the message to print
-
-
Method Details
-
execute
public void execute()Description copied from interface:ExecutableTaskRun the task- Specified by:
executein interfaceExecutableTask
-
getId
Description copied from interface:ExecutableTaskGet the ID of the task- Specified by:
getIdin interfaceExecutableTask- Returns:
SourceId.PRINT
-
feedback
Description copied from interface:ExecutableTaskGet some feedback from the task. Can be anything, depending on the task.- Specified by:
feedbackin interfaceExecutableTask- Returns:
- The message as a string.
-
toString
-
getValue
- Specified by:
getValuein interfaceValuedTask
-