Class StepDefinition.Argument

java.lang.Object
nz.org.riskscape.rl.ast.GenericArgument<AST>
nz.org.riskscape.rl.ast.StepDefinition.Argument
All Implemented Interfaces:
AST
Enclosing class:
StepDefinition

public static class StepDefinition.Argument extends GenericArgument<AST>
  • Constructor Details

  • Method Details

    • switchArgument

      public void switchArgument(Consumer<Expression> ifExpression, Consumer<InputChain> ifInput)
    • isInputChain

      public boolean isInputChain()
      Returns:
      true if this argument's value is an input chain a.k.a pipeline argument.
    • appendSource

      protected static void appendSource(AST ast, StringBuilder appendTo)

      Helper method for appending the source of another ast element to a string builder, efficiently if possible.

    • toString

      public final String toString()

      Returns a simplified view of the ast in a source-like fashion, but with a lot of details left out for conciseness

      Overrides:
      toString in class Object
    • appendString

      protected void appendString(StringBuilder appendTo)

      Append a simplified string representation to the builder. Default implementation uses appendSource. Subclasses can override to provide a more concise representation.

    • toSource

      public final String toSource()
      Specified by:
      toSource in interface AST
      Returns:
      a normalized version of the AST that can be parsed to be exactly the same AST as this