org.eclipse.xtend.backend.common
Interface ExecutionListener

All Known Implementing Classes:
DeferredEvalExecutionListener

public interface ExecutionListener

This interface allows an interested party to register as a listener for the execution of code in the backend. The model is slightly different from the typical listener usage in that there are no "rich" events. Instead, just the current ExecutionContext is passed as a parameter.
So there is no data that would allow the identification of the sender or a specific receiver. The intended usage model is that the middle end registers a specific ExecutionListener instance per backend element that takes care of these mapping issues.

Author:
Arno Haase (http://www.haase-consulting.com)

Method Summary
 void postExecute(java.lang.Object result, ExecutionContext ctx, ExpressionBase originator)
           
 void preExecute(ExecutionContext ctx, ExpressionBase originator)
           
 

Method Detail

preExecute

void preExecute(ExecutionContext ctx,
                ExpressionBase originator)
                throws EvaluationVetoException
Throws:
EvaluationVetoException

postExecute

void postExecute(java.lang.Object result,
                 ExecutionContext ctx,
                 ExpressionBase originator)