Interface ScriptBuffer

All Known Implementing Classes:
BasicScriptBuffer

public interface ScriptBuffer
Add cmd
  • Method Summary

    Modifier and Type
    Method
    Description
    add(Cmd... cmd)
    Add parsed commands to the script buffer
    Get a map which contains all of the params which came from commands of global scope, like script and fragment commands.
     
    Get the text image of the combined script with all previously added commands included
  • Method Details

    • getCommands

      List<Cmd> getCommands()
    • add

      ScriptBuffer add(Cmd... cmd)
      Add parsed commands to the script buffer
      Parameters:
      cmd - A parsed command
      Returns:
      This ScriptBuffer
    • getParsedScript

      String getParsedScript()
      Get the text image of the combined script with all previously added commands included
      Returns:
      The script text
    • getCombinedParams

      Map<String,String> getCombinedParams()
      Get a map which contains all of the params which came from commands of global scope, like script and fragment commands. If one of these commands overwrites a named parameter from another, an error should be logged at warning or higher level.
      Returns:
      A globa params map.