org.mvel.integration
Interface Interceptor


public interface Interceptor

An interceptor can be used to decorate functionality into an expression.

Author:
Christopher Brock

Field Summary
static int END
           
static int NORMAL_FLOW
           
static int SKIP
           
 
Method Summary
 int doAfter(java.lang.Object exitStackValue, ASTNode node, VariableResolverFactory factory)
           
 int doBefore(ASTNode node, VariableResolverFactory factory)
          This method is executed before the wrapped statement.
 

Field Detail

NORMAL_FLOW

static final int NORMAL_FLOW
See Also:
Constant Field Values

SKIP

static final int SKIP
See Also:
Constant Field Values

END

static final int END
See Also:
Constant Field Values
Method Detail

doBefore

int doBefore(ASTNode node,
             VariableResolverFactory factory)
This method is executed before the wrapped statement.

Parameters:
node - The ASTNode wrapped by the interceptor
factory - The variable factory
Returns:
The response code. Should return 0.

doAfter

int doAfter(java.lang.Object exitStackValue,
            ASTNode node,
            VariableResolverFactory factory)
Parameters:
exitStackValue - The value on the top of the stack after executing the statement.
node - The ASTNode wrapped by the interceptor
factory - The variable factory
Returns:
The response code. Should return 0.