Interface Command

All Known Subinterfaces:
InlineCommand

public interface Command
A script command. The script executor will look up commands by name in the current Namespace. Each execution of the command will cause a call createStackFrame(org.praxislive.script.Namespace, java.util.List).
  • Method Summary

    Modifier and Type
    Method
    Description
    createStackFrame(Namespace namespace, List<Value> args)
    Create a StackFrame to execute the command with the provided Namespace and arguments.
  • Method Details

    • createStackFrame

      StackFrame createStackFrame(Namespace namespace, List<Value> args) throws Exception
      Create a StackFrame to execute the command with the provided Namespace and arguments.
      Parameters:
      namespace - current namespace
      args - arguments
      Returns:
      stack frame to execute command with provided arguments
      Throws:
      Exception - if stack frame cannot be created