public class Expressions extends Object
| Constructor and Description |
|---|
Expressions(Functions functions,
CacheProvider cacheProvider,
ELTypeConverter typeConverter,
ExpressionProvider expProvider) |
| Modifier and Type | Method and Description |
|---|---|
javax.el.ValueExpression |
constant(Object value,
Class<?> type) |
static Expressions |
forTesting()
Returns an instance of Expressions that doesn't require
any functions or perform any caching.
|
static Expressions |
forTesting(Functions functions)
Returns an instance of Expressions that doesn't require
any functions or perform any caching.
|
javax.el.ELContext |
newELContext(javax.el.ELResolver... customResolvers)
Creates an ELContext.
|
javax.el.ValueExpression |
parse(String expression,
Class<?> type)
Parse a value expression.
|
@Inject public Expressions(Functions functions, CacheProvider cacheProvider, ELTypeConverter typeConverter, ExpressionProvider expProvider)
public static Expressions forTesting(Functions functions)
public static Expressions forTesting()
public javax.el.ELContext newELContext(javax.el.ELResolver... customResolvers)
customResolvers - resolvers to be added to the chainpublic javax.el.ValueExpression parse(String expression, Class<?> type)
expression - the string expression. This may be a literal
without any expressions.type - the desired coercion type.Copyright © 2007-2012. All Rights Reserved.