public class ExpressionFactoryImpl extends ExpressionFactory
ExpressionFactory
Constructor and Description |
---|
ExpressionFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
<T> T |
coerceToType(Object obj,
Class<T> type)
Coerce the supplied object to the requested type.
|
MethodExpression |
createMethodExpression(ELContext context,
String expression,
Class<?> expectedReturnType,
Class<?>[] expectedParamTypes)
Create a new method expression instance.
|
ValueExpression |
createValueExpression(ELContext context,
String expression,
Class<?> expectedType)
Create a new value expression.
|
ValueExpression |
createValueExpression(Object instance,
Class<?> expectedType) |
ELResolver |
getStreamELResolver() |
getInitFunctionMap, newInstance, newInstance
public <T> T coerceToType(Object obj, Class<T> type)
jakarta.el.ExpressionFactory
coerceToType
in class ExpressionFactory
T
- The type to which the object should be coercedobj
- The object to be coercedtype
- The type to which the object should be coercedpublic MethodExpression createMethodExpression(ELContext context, String expression, Class<?> expectedReturnType, Class<?>[] expectedParamTypes)
jakarta.el.ExpressionFactory
createMethodExpression
in class ExpressionFactory
context
- The EL context for this evaluationexpression
- The String representation of the method
expressionexpectedReturnType
- The expected type of the result of invoking the
methodexpectedParamTypes
- The expected types of the input parameterspublic ValueExpression createValueExpression(ELContext context, String expression, Class<?> expectedType)
jakarta.el.ExpressionFactory
createValueExpression
in class ExpressionFactory
context
- The EL context for this evaluationexpression
- The String representation of the value expressionexpectedType
- The expected type of the result of evaluating the
expressionpublic ValueExpression createValueExpression(Object instance, Class<?> expectedType)
createValueExpression
in class ExpressionFactory
public ELResolver getStreamELResolver()
getStreamELResolver
in class ExpressionFactory
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.