Class NamedArgumentBag

java.lang.Object
be.seeseemelk.llamascript.arguments.NamedArgumentBag
All Implemented Interfaces:
ArgumentBag

public class NamedArgumentBag extends Object implements ArgumentBag
A bag of arguments that will keep the order in which the arguments were added. The arguments are added with an index, which starts at one for the first argument.
  • Constructor Details

    • NamedArgumentBag

      public NamedArgumentBag()
  • Method Details

    • set

      public NamedArgumentBag set(String name, Object value)
      Adds an argument to the bag.
      Parameters:
      value - The argument to add.
      Returns:
      This instance.
    • writeTo

      public void writeTo(StringBuilder builder)
      Description copied from interface: ArgumentBag
      Writes the values inside the argument bag to a StringBuilder.
      Specified by:
      writeTo in interface ArgumentBag
      Parameters:
      builder - The StringBuilder to write to.