Class

polynote.kernel.interpreter.scal.ScalaInterpreter

ScalaCellState

Related Doc: package ScalaInterpreter

Permalink

case class ScalaCellState(id: CellID, prev: State, values: List[ResultValue], cellCode: CellCode, instance: Option[AnyRef]) extends State with Product with Serializable

A State implementation for Scala cells. It tracks the CellCode and the instance of the cell class, which we'll need to pass into future cells if they use types, classes, etc from this cell.

Linear Supertypes
Serializable, Serializable, Product, Equals, State, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ScalaCellState
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. State
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ScalaCellState(id: CellID, prev: State, values: List[ResultValue], cellCode: CellCode, instance: Option[AnyRef])

    Permalink

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 at(id: CellID): Option[State]

    Permalink
    Definition Classes
    State
  6. val cellCode: CellCode

    Permalink
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def collect[A](pf: PartialFunction[State, A]): List[A]

    Permalink

    Evaluate the given partial function in all states where it's defined, travelling in reverse chronological order and collecting results into a List.

    Evaluate the given partial function in all states where it's defined, travelling in reverse chronological order and collecting results into a List.

    Definition Classes
    State
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def foreachPrev(fn: (State) ⇒ Unit): Unit

    Permalink

    Perform the side effect for each state, moving back through states in reverse chronological order

    Perform the side effect for each state, moving back through states in reverse chronological order

    Definition Classes
    State
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. val id: CellID

    Permalink

    The cell ID

    The cell ID

    Definition Classes
    ScalaCellStateState
  14. def insert(after: CellID, state: State): State

    Permalink

    Insert the given state after the given state, such that the state with the given ID becomes the given state's predecessor.

    Insert the given state after the given state, such that the state with the given ID becomes the given state's predecessor. If no state exists with the given ID, it will be inserted after Root.

    Definition Classes
    State
  15. def insertOrReplace(state: State): State

    Permalink

    Replace the state with the same ID as the given state with the given state.

    Replace the state with the same ID as the given state with the given state. If a state with the given state's predecessor is found before a state with the same ID as the given state, the given state will be inserted between the predecessor and its successor.

    Definition Classes
    State
  16. val instance: Option[AnyRef]

    Permalink
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def lastPredef: State

    Permalink
    Definition Classes
    State
  19. def moveAfter(id: CellID, after: CellID): State

    Permalink

    Move a previous state to be after another given previous state.

    Move a previous state to be after another given previous state. The state with the given id will get after as its parent.

    Definition Classes
    State
  20. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  23. val prev: State

    Permalink

    The state on which this one depends

    The state on which this one depends

    Definition Classes
    ScalaCellStateState
  24. def remove(id: CellID): State

    Permalink
    Definition Classes
    State
  25. def rewindUntil(predicate: (State) ⇒ Boolean): State

    Permalink

    Find the first state in the chain where the predicate holds

    Find the first state in the chain where the predicate holds

    Definition Classes
    State
  26. def rewindWhile(predicate: (State) ⇒ Boolean): State

    Permalink

    Find the furthest state in the chain where the predicate still holds

    Find the furthest state in the chain where the predicate still holds

    Definition Classes
    State
  27. def scope: List[ResultValue]

    Permalink
    Definition Classes
    State
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  29. def takeUntil(fn: (State) ⇒ Boolean): List[State]

    Permalink

    returns

    a list of states in reverse chronological order, until the predicate is satisfied, *including* the state which satisfied the predicate (if any)

    Definition Classes
    State
  30. def takeWhile(fn: (State) ⇒ Boolean): List[State]

    Permalink

    returns

    a list of states in reverse chronological order, until (but not including) the predicate fails to hold

    Definition Classes
    State
  31. def toList: List[State]

    Permalink

    returns

    a list of states in reverse chronological order

    Definition Classes
    State
  32. def updateValues(fn: (ResultValue) ⇒ ResultValue): State

    Permalink
    Definition Classes
    ScalaCellStateState
  33. def updateValuesM[R](fn: (ResultValue) ⇒ RIO[R, ResultValue]): RIO[R, State]

    Permalink
    Definition Classes
    ScalaCellStateState
  34. val values: List[ResultValue]

    Permalink

    The values contained by this state (i.e.

    The values contained by this state (i.e. defined by the cell whose execution state this represents)

    Definition Classes
    ScalaCellStateState
  35. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. def withPrev(prev: State): ScalaCellState

    Permalink
    Definition Classes
    ScalaCellStateState

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from State

Inherited from AnyRef

Inherited from Any

Ungrouped