org.eclipse.xtend.expression
Interface VetoableCallback

All Known Implementing Classes:
ContextComputer, IncrementalGenerationCallback, IncrementalGenerationFacade, ProfilerComponent, VetoableCallbackAdapter

public interface VetoableCallback

an instance of this interface can be injected into the execution context. It is notified before and after analyzation/evaluation of each AST node.

Author:
Sven Efftinge

Method Summary
 void post(SyntaxElement ele, ExecutionContext ctx, java.lang.Object expressionResult)
          Called after an element has been processed.
 boolean pre(SyntaxElement ele, ExecutionContext ctx)
          Called before an element is being processed.
 

Method Detail

pre

boolean pre(SyntaxElement ele,
            ExecutionContext ctx)
Called before an element is being processed.

Parameters:
ele - The element being processed. Never null.
ctx - The execution context in which processing occurs. Never null.
Returns:
true if processing should continue normally, false if this element should be skipped.

post

void post(SyntaxElement ele,
          ExecutionContext ctx,
          java.lang.Object expressionResult)
Called after an element has been processed.

Parameters:
ele - The element being processed. Never null.
ctx - The execution context in which processing occurs. Never null.
expressionResult - the result of the evaluation (an instance of Type in analyzation phase) if syntax element was an instance of Expression