JIVE Platform
Release 0.3.1

edu.bsu.cs.jive.events
Interface ReturnEvent

All Superinterfaces:
Event

public interface ReturnEvent
extends Event

Event that represents a method's return. The returning method may be in the model or outside of the model.


Nested Class Summary
static interface ReturnEvent.Exporter
          Exporter (reverse-builder) for return events
static interface ReturnEvent.Importer
          Importer (builder) for return events.
static interface ReturnEvent.Returner
          The context from which control is returning.
 
Nested classes/interfaces inherited from interface edu.bsu.cs.jive.events.Event
Event.Visitor
 
Method Summary
 void export(ReturnEvent.Exporter exporter)
          Exports the event.
 ReturnEvent.Returner getPreviousContext()
          Get the context from which execution has returned.
 Value getReturnValue()
          Get the value from this return event.
 
Methods inherited from interface edu.bsu.cs.jive.events.Event
accept, number, thread
 

Method Detail

getPreviousContext

ReturnEvent.Returner getPreviousContext()
Get the context from which execution has returned.

Returns:
a return context

getReturnValue

Value getReturnValue()
Get the value from this return event. If the method was a void method, then the result of this call is meaningless.

Returns:
method return value

export

void export(ReturnEvent.Exporter exporter)
Exports the event.

Parameters:
exporter - the reverse-builder

JIVE Platform
Release 0.3.1