org.mule.el.mvel
Class MVELExpressionExecutor
java.lang.Object
org.mule.el.mvel.MVELExpressionExecutor
- All Implemented Interfaces:
- ExpressionExecutor<MVELExpressionLanguageContext>
public class MVELExpressionExecutor
- extends Object
- implements ExpressionExecutor<MVELExpressionLanguageContext>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMPILED_EXPRESSION_MAX_CACHE_SIZE
protected static final int COMPILED_EXPRESSION_MAX_CACHE_SIZE
- See Also:
- Constant Field Values
parserContext
protected org.mvel2.ParserContext parserContext
compiledExpressionsCache
protected LRUMap compiledExpressionsCache
MVELExpressionExecutor
public MVELExpressionExecutor(org.mvel2.ParserContext parserContext)
execute
public Object execute(String expression,
MVELExpressionLanguageContext context)
- Description copied from interface:
ExpressionExecutor
- Execute an expression using using the provided context.
- Specified by:
execute
in interface ExpressionExecutor<MVELExpressionLanguageContext>
- Returns:
validate
public void validate(String expression)
throws InvalidExpressionException
- Description copied from interface:
ExpressionExecutor
- Validate the expression
- Specified by:
validate
in interface ExpressionExecutor<MVELExpressionLanguageContext>
- Throws:
InvalidExpressionException
getCompiledExpression
protected Serializable getCompiledExpression(String expression)
- Compile an expression. If such expression was compiled before then return the compilation output from a
cache.
- Parameters:
expression
- Expression to be compiled
- Returns:
- A
Serializable
object representing the compiled expression
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.