public abstract class ExpressionFactory extends Object
| Constructor and Description |
|---|
ExpressionFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract Object |
coerceToType(Object obj,
Class<?> expectedType) |
abstract MethodExpression |
createMethodExpression(ELContext context,
String expression,
Class<?> expectedReturnType,
Class<?>[] expectedParamTypes) |
abstract ValueExpression |
createValueExpression(ELContext context,
String expression,
Class<?> expectedType) |
abstract ValueExpression |
createValueExpression(Object instance,
Class<?> expectedType) |
static ExpressionFactory |
newInstance()
Create a new
ExpressionFactory. |
static ExpressionFactory |
newInstance(Properties properties)
Create a new
ExpressionFactory passing in the provided
Properties. |
public abstract Object coerceToType(Object obj, Class<?> expectedType) throws ELException
ELExceptionpublic abstract ValueExpression createValueExpression(ELContext context, String expression, Class<?> expectedType) throws NullPointerException, ELException
NullPointerExceptionELExceptionpublic abstract ValueExpression createValueExpression(Object instance, Class<?> expectedType)
public abstract MethodExpression createMethodExpression(ELContext context, String expression, Class<?> expectedReturnType, Class<?>[] expectedParamTypes) throws ELException, NullPointerException
ELExceptionNullPointerExceptionpublic static ExpressionFactory newInstance()
ExpressionFactory. The class to use is determined by
the following search order:
public static ExpressionFactory newInstance(Properties properties)
ExpressionFactory passing in the provided
Properties. Search order is the same as newInstance().properties - the properties to be passed to the new instance (may be null)Copyright © 2016. All rights reserved.