Interface Session.Shell

All Known Implementing Classes:
Main.Shell, Main.SubShell, Session.Shells, Shell.SubShell.Use
Enclosing class:
Session

public static interface Session.Shell
Callback to implement "use" command.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Clears the environment.
    void
    Handles an exception.
    void
    use(String fileName, boolean silent, Pos pos)
     
  • Method Details

    • use

      void use(String fileName, boolean silent, Pos pos)
    • handle

      void handle(RuntimeException e, StringBuilder buf)
      Handles an exception. Particular implementations may re-throw the exception, or may format the exception to a buffer that will be added to the output. Typically, a root shell will handle the exception, and sub-shells will re-throw.
    • clearEnv

      default void clearEnv()
      Clears the environment. Default implementation does nothing.