Interface ScriptBuffer

All Known Implementing Classes:
BasicScriptBuffer

public interface ScriptBuffer
Add cmd
  • Method Summary

    Modifier and Type Method Description
    ScriptBuffer add​(Cmd... cmd)
    Add parsed commands to the script buffer
    java.util.Map<java.lang.String,​java.lang.String> getCombinedParams()
    Get a map which contains all of the params which came from commands of global scope, like script and fragment commands.
    java.util.List<Cmd> getCommands()  
    java.lang.String getParsedScript()
    Get the text image of the combined script with all previously added commands included
  • Method Details

    • getCommands

      java.util.List<Cmd> getCommands()
    • add

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

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

      java.util.Map<java.lang.String,​java.lang.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.