org.eclipse.xtend.expression
Class VetoableCallbackAdapter
java.lang.Object
org.eclipse.xtend.expression.VetoableCallbackAdapter
- All Implemented Interfaces:
- VetoableCallback
public class VetoableCallbackAdapter
- extends java.lang.Object
- implements VetoableCallback
Adapts the deprecated Callback
interface to the new VetoableCallback
interface.
- Author:
- Achim Demelt
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VetoableCallbackAdapter
public VetoableCallbackAdapter(Callback oldCallback)
initialize
public void initialize(org.eclipse.emf.mwe.core.WorkflowContext workflowContext,
org.eclipse.emf.mwe.core.issues.Issues issues)
post
public void post(SyntaxElement ele,
ExecutionContext ctx,
java.lang.Object expressionResult)
- Description copied from interface:
VetoableCallback
- Called after an element has been processed.
- Specified by:
post
in interface VetoableCallback
- 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
pre
public boolean pre(SyntaxElement ele,
ExecutionContext ctx)
- Description copied from interface:
VetoableCallback
- Called before an element is being processed.
- Specified by:
pre
in interface VetoableCallback
- 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.