final case class Exit[+R]() extends Action[R, When] with Product with Serializable
When this action is executed the current run of Expect is terminated causing it to return the last value, if there is a ReturningAction, or the default value otherwise.
Any action or expect block added after this will not be executed.
- Source
- Exit.scala
          
            Linear Supertypes
          
          
        
                
                  Type Hierarchy
                
                
                
                  
                  
                  
                
              
          
          
            
          
          
        
        
            Ordering
            
          - Alphabetic
- By Inheritance
                  Inherited
                  
                  
- Exit
- Serializable
- Serializable
- Product
- Equals
- Action
- AnyRef
- Any
                  Implicitly
                  
                  
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
              Visibility
              
        - Public
- All
Instance Constructors
-  new Exit()
Type Members
- 
      
      
      
        
      
    
      
        
        type
      
      
        =/>[-A, +B] = PartialFunction[A, B]
      
      
      - Definition Classes
- Action
 
Value Members
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        !=(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ##(): Int
      
      
      - Definition Classes
- AnyRef → Any
 
-  def +(other: String): String
-  def ->[B](y: B): (Exit[R], B)
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ==(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        asInstanceOf[T0]: T0
      
      
      - Definition Classes
- Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        clone(): AnyRef
      
      
      - Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
-  def ensuring(cond: (Exit[R]) ⇒ Boolean, msg: ⇒ Any): Exit[R]
-  def ensuring(cond: (Exit[R]) ⇒ Boolean): Exit[R]
-  def ensuring(cond: Boolean, msg: ⇒ Any): Exit[R]
-  def ensuring(cond: Boolean): Exit[R]
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        eq(arg0: AnyRef): Boolean
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        finalize(): Unit
      
      
      - Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        flatMap[T](f: (R) ⇒ Expect[T]): Action[T, When]
      
      
      - Attributes
- protected[work.martins.simon.expect]
- Definition Classes
- Exit → Action
 
-  def formatted(fmtstr: String): String
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        getClass(): Class[_]
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        isInstanceOf[T0]: Boolean
      
      
      - Definition Classes
- Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        map[T](f: (R) ⇒ T): Action[T, When]
      
      
      - Attributes
- protected[work.martins.simon.expect]
- Definition Classes
- Exit → Action
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ne(arg0: AnyRef): Boolean
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        notify(): Unit
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        notifyAll(): Unit
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        pfNotDefined[RR >: R, T](r: RR): T
      
      
      - Attributes
- protected
- Definition Classes
- Action
 
-  def run[RR >: R](when: When[RR], runContext: RunContext[RR]): RunContext[RR]
- 
      
      
      
        
      
    
      
        
        def
      
      
        structurallyEquals[RR >: R, W[+X] <: When[X]](other: Action[RR, W]): Boolean
      
      
      Returns whether the other Action is structurally equal to this Action. Returns whether the other Action is structurally equal to this Action. - other
- the other Action to campare this Action to. 
 - Definition Classes
- Exit → Action
- Exit() structurallyEquals Exit() //returns true Exit() structurallyEquals Send() //returns false Send("AA") structurallyEquals Send("BB") //returns true Returning(5) structurallyEquals Returning { complexFunctionReturningAnInt } //returns true Returning("AA") structurallyEquals Returning(5) //won't compile - We cannot test that an Action is equal to another Action because some actions return a value by invoking a function. And equality on a function is not defined. So in other to extract some useful information about the "equality" of two actions we created this function. 
 Example:
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        synchronized[T0](arg0: ⇒ T0): T0
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        transform[T](flatMapPF: =/>[R, Expect[T]], mapPF: =/>[R, T]): Action[T, When]
      
      
      - Attributes
- protected[work.martins.simon.expect]
- Definition Classes
- Exit → Action
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long, arg1: Int): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        wait(arg0: Long): Unit
      
      
      - Definition Classes
- AnyRef
- Annotations
- @throws( ... )
 
-  def →[B](y: B): (Exit[R], B)