All Downloads are FREE. Search and download functionalities are using the official Maven repository.

change-sysadmin-scala_3.0.1.4.source-code.mbActionDescription-untemplate.scala Maven / Gradle / Ivy

The newest version!
// DO NOT HAND EDIT -- Autogenerated from 'mbActionDescription.untemplate' at 2024-03-27T00:43:21.058247Z
package com.mchange.sysadmin.taskrunner

import java.io.{Writer,StringWriter}
import scala.collection.*



val Untemplate_mbActionDescription = new untemplate.Untemplate[AnyStep,Nothing]:
  val UntemplateFunction                    : untemplate.Untemplate[AnyStep,Nothing] = this
  val UntemplateName                        : String = "mbActionDescription"
  val UntemplatePackage                     : String = "com.mchange.sysadmin.taskrunner"
  val UntemplateInputName                   : String = "step"
  val UntemplateInputTypeDeclared           : String = "AnyStep"
  val UntemplateInputTypeCanonical          : Option[String] = untemplate.Macro.nonEmptyStringOption( untemplate.Macro.recursiveCanonicalName[AnyStep] )
  val UntemplateInputDefaultArgument        : Option[AnyStep] = (None : Option[AnyStep])
  val UntemplateOutputMetadataTypeDeclared  : String = "Nothing"
  val UntemplateOutputMetadataTypeCanonical : Option[String] = untemplate.Macro.nonEmptyStringOption( untemplate.Macro.recursiveCanonicalName[Nothing] )
  val UntemplateHeaderNote                  : String = ""

  val UntemplateAttributes : immutable.Map[String,Any] = immutable.Map.empty


  def apply(step : AnyStep) : untemplate.Result[Nothing] =
    val writer             : StringWriter = new StringWriter(1860)
    val attrs              : immutable.Map[String,Any] = UntemplateAttributes
    var mbMetadata         : Option[Nothing] = None
    var outputTransformer  : Function1[untemplate.Result[Nothing],untemplate.Result[Nothing]] = identity



      val block0 = new Function0[String]:
        def apply() : String =
          "\n"
      writer.write(block0())

      step.actionDescription.foreach { ad =>
        val block1 = new Function0[String]:
          def apply() : String =
            "
Action: " + ( ad.htmlSafeText ) + "
\n" writer.write(block1()) } val block2 = new Function0[String]: def apply() : String = "\n" writer.write(block2()) outputTransformer( untemplate.Result( mbMetadata, writer.toString ) ) end apply end Untemplate_mbActionDescription def mbActionDescription(step : AnyStep) : untemplate.Result[Nothing] = Untemplate_mbActionDescription( step )




© 2015 - 2025 Weber Informatics LLC | Privacy Policy