Object

ammonite.repl.ReplApiImpl

sess

Related Doc: package ReplApiImpl

Permalink

object sess extends Session

Functions that can be used to manipulate the current REPL session: check-pointing progress, reverting to earlier checkpoints, or deleting checkpoints by name.

Frames get pushed on a stack; by default, a saved frame is accessible simply by calling load. If you provide a name when saveing a checkpoint, it can later be loaded directly by providing the same name to load

Un-named checkpoints are garbage collected, together with their classloader and associated data, when they are no longer accessible due to restore. Named checkpoints are kept forever; call delete on them if you really want them to go away.

Definition Classes
ReplApiImplReplAPI
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. sess
  2. Session
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def delete(name: String): Unit

    Permalink

    Deletes a named checkpoint, allowing it to be garbage collected if it is no longer accessible.

    Deletes a named checkpoint, allowing it to be garbage collected if it is no longer accessible.

    Definition Classes
    sessSession
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def frames: List[Frame]

    Permalink

    The current stack of frames

    The current stack of frames

    Definition Classes
    sessSession
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. def load(name: String = ""): SessionChanged

    Permalink

    Discards the last frames, effectively reverting your session to the last save-ed checkpoint.

    Discards the last frames, effectively reverting your session to the last save-ed checkpoint. If a name is provided, it instead reverts your session to the checkpoint with that name.

    Definition Classes
    sessSession
  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. def pop(num: Int = 1): SessionChanged

    Permalink

    Resets you to the last save point.

    Resets you to the last save point. If you pass in num, it resets you to that many savepoints since the last one.

    Definition Classes
    sessSession
  19. def save(name: String): Unit

    Permalink

    Checkpoints your current work, placing all future work into its own frames.

    Checkpoints your current work, placing all future work into its own frames. If a name is provided, it can be used to quickly recover that checkpoint later.

    Definition Classes
    sessSession
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Session

Inherited from AnyRef

Inherited from Any

Ungrouped