java.lang.Object
com.wyu4.snowberryjam.compiler.data.tasks.PrintTask
All Implemented Interfaces:
ExecutableTask, ValuedTask

public class PrintTask extends Object implements 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 Details

    • message

      private final ValueHolder 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 - The JsonNode to refer
    • PrintTask

      public PrintTask(String message)
      Create a new print statement.
      Parameters:
      message - the message to print
    • PrintTask

      public PrintTask(ValueHolder message)
      Create a new print statement.
      Parameters:
      message - ValueHolder pointing to the message to print
  • Method Details