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

public class WarnTask extends Object implements ExecutableTask, ValuedTask
A warn 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

    • WarnTask

      public WarnTask(com.fasterxml.jackson.databind.JsonNode node)
      Create a new warn statement.
      Parameters:
      node - The JsonNode to refer
    • WarnTask

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

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