public class MVELExpressionLanguageContext extends MuleBaseVariableResolverFactory implements ExpressionLanguageContext
Modifier and Type | Field and Description |
---|---|
static String |
MULE_CONTEXT_INTERNAL_VARIABLE |
static String |
MULE_EVENT_INTERNAL_VARIABLE |
static String |
MULE_MESSAGE_INTERNAL_VARIABLE |
protected MuleContext |
muleContext |
protected org.mule.mvel2.ParserConfiguration |
parserConfiguration |
Constructor and Description |
---|
MVELExpressionLanguageContext(MVELExpressionLanguageContext context) |
MVELExpressionLanguageContext(org.mule.mvel2.ParserConfiguration parserConfiguration,
MuleContext muleContext) |
Modifier and Type | Method and Description |
---|---|
void |
addAlias(String alias,
String expression) |
<T> void |
addFinalVariable(String name,
T value) |
<T> void |
addPrivateVariable(String name,
T value)
DEPRECATED: Use addVariable() or addFinalVariable() instead depending if variable should be
assignable or not.
|
<T> void |
addVariable(String name,
T value) |
<T> void |
addVariable(String name,
T value,
VariableAssignmentCallback<T> assignmentCallback) |
boolean |
contains(String name) |
void |
declareFunction(String name,
ExpressionLanguageFunction function) |
<T> T |
getVariable(String name) |
<T> T |
getVariable(String name,
Class<T> type) |
org.mule.mvel2.integration.VariableResolver |
getVariableResolver(String name) |
void |
importClass(Class<?> clazz) |
void |
importClass(String name,
Class<?> clazz) |
void |
importStaticMethod(String name,
Method method) |
addResolver, createVariable, createVariable, getNextFactoryVariableResolver, isResolveable, isTarget
appendFactory, createIndexedVariable, createIndexedVariable, getIndexedVariableNames, getIndexedVariableResolver, getKnownVariables, getNextFactory, getVariableResolvers, insertFactory, isIndexedFactory, isNextResolveable, setIndexedVariableNames, setIndexedVariableResolver, setNextFactory, setTiltFlag, setVariableResolvers, tiltFlag, variableIndexOf
public static final String MULE_MESSAGE_INTERNAL_VARIABLE
public static final String MULE_EVENT_INTERNAL_VARIABLE
public static final String MULE_CONTEXT_INTERNAL_VARIABLE
protected org.mule.mvel2.ParserConfiguration parserConfiguration
protected MuleContext muleContext
public MVELExpressionLanguageContext(org.mule.mvel2.ParserConfiguration parserConfiguration, MuleContext muleContext)
public MVELExpressionLanguageContext(MVELExpressionLanguageContext context)
public org.mule.mvel2.integration.VariableResolver getVariableResolver(String name)
getVariableResolver
in interface org.mule.mvel2.integration.VariableResolverFactory
getVariableResolver
in class MuleBaseVariableResolverFactory
public <T> void addVariable(String name, T value)
addVariable
in interface ExpressionLanguageContext
public <T> void addVariable(String name, T value, VariableAssignmentCallback<T> assignmentCallback)
addVariable
in interface ExpressionLanguageContext
public <T> void addFinalVariable(String name, T value)
addFinalVariable
in interface ExpressionLanguageContext
public <T> T getVariable(String name)
getVariable
in interface ExpressionLanguageContext
public <T> T getVariable(String name, Class<T> type)
getVariable
in interface ExpressionLanguageContext
public void addAlias(String alias, String expression)
addAlias
in interface ExpressionLanguageContext
public void importClass(Class<?> clazz)
importClass
in interface ExpressionLanguageContext
public void importClass(String name, Class<?> clazz)
importClass
in interface ExpressionLanguageContext
public void importStaticMethod(String name, Method method)
importStaticMethod
in interface ExpressionLanguageContext
public boolean contains(String name)
contains
in interface ExpressionLanguageContext
public void declareFunction(String name, ExpressionLanguageFunction function)
declareFunction
in interface ExpressionLanguageContext
public <T> void addPrivateVariable(String name, T value)
ExpressionLanguageContext
addPrivateVariable
in interface ExpressionLanguageContext
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.