public class ExpressionContext extends Object
| Constructor and Description |
|---|
ExpressionContext()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFunctionProvider(FunctionProvider functionProvider)
Adds function provider to the expression context.
|
void |
addVariableProvider(VariableProvider variableProvider)
Adds variable provider to the expression context.
|
void |
addVariableProvider(VariableProvider variableProvider,
String providerName) |
void |
clearVariableProviders() |
Object |
getContextProperty(String propertyName)
Returns the value for a property.
|
Collection<FunctionProvider> |
getFunctionProviders()
Gets the collection of function providers.
|
VariableProvider |
getVariableProvider(String providerName) |
Collection<VariableProvider> |
getVariableProviders()
Gets the collection of variable providers.
|
void |
reset()
Resets the expression context.
|
void |
setContextProperty(String propertyName,
Object propertyValue)
Sets the value for any context property.
|
public ExpressionContext()
throws ExpressionEngineException
ExpressionEngineExceptionpublic void addVariableProvider(VariableProvider variableProvider, String providerName)
public void addVariableProvider(VariableProvider variableProvider)
variableProvider - the variable provider to addpublic void addFunctionProvider(FunctionProvider functionProvider) throws ExpressionEngineException
functionProvider - the function provider to addExpressionEngineExceptionpublic Collection<FunctionProvider> getFunctionProviders()
public Collection<VariableProvider> getVariableProviders()
public VariableProvider getVariableProvider(String providerName)
public void setContextProperty(String propertyName, Object propertyValue)
propertyName - the name of propertypropertyValue - the value of propertypublic Object getContextProperty(String propertyName)
propertyName - the name of propertynull if
no property exists in expression contextpublic void clearVariableProviders()
public void reset()