Package org.apache.el
Class ExpressionFactoryImpl
- java.lang.Object
-
- jakarta.el.ExpressionFactory
-
- org.apache.el.ExpressionFactoryImpl
-
public class ExpressionFactoryImpl extends ExpressionFactory
- Author:
- Jacob Hookom [jacob@hookom.net]
- See Also:
ExpressionFactory
-
-
Constructor Summary
Constructors Constructor Description ExpressionFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
coerceToType(java.lang.Object obj, java.lang.Class<?> type)
Coerce the supplied object to the requested type.MethodExpression
createMethodExpression(ELContext context, java.lang.String expression, java.lang.Class<?> expectedReturnType, java.lang.Class<?>[] expectedParamTypes)
Create a new method expression instance.ValueExpression
createValueExpression(ELContext context, java.lang.String expression, java.lang.Class<?> expectedType)
Create a new value expression.ValueExpression
createValueExpression(java.lang.Object instance, java.lang.Class<?> expectedType)
ELResolver
getStreamELResolver()
-
Methods inherited from class jakarta.el.ExpressionFactory
getInitFunctionMap, newInstance, newInstance
-
-
-
-
Method Detail
-
coerceToType
public java.lang.Object coerceToType(java.lang.Object obj, java.lang.Class<?> type)
Description copied from class:jakarta.el.ExpressionFactory
Coerce the supplied object to the requested type.- Specified by:
coerceToType
in classExpressionFactory
- Parameters:
obj
- The object to be coercedtype
- The type to which the object should be coerced- Returns:
- An instance of the requested type.
-
createMethodExpression
public MethodExpression createMethodExpression(ELContext context, java.lang.String expression, java.lang.Class<?> expectedReturnType, java.lang.Class<?>[] expectedParamTypes)
Description copied from class:jakarta.el.ExpressionFactory
Create a new method expression instance.- Specified by:
createMethodExpression
in classExpressionFactory
- Parameters:
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 parameters- Returns:
- A new method expression formed from the input parameters.
-
createValueExpression
public ValueExpression createValueExpression(ELContext context, java.lang.String expression, java.lang.Class<?> expectedType)
Description copied from class:jakarta.el.ExpressionFactory
Create a new value expression.- Specified by:
createValueExpression
in classExpressionFactory
- Parameters:
context
- The EL context for this evaluationexpression
- The String representation of the value expressionexpectedType
- The expected type of the result of evaluating the expression- Returns:
- A new value expression formed from the input parameters
-
createValueExpression
public ValueExpression createValueExpression(java.lang.Object instance, java.lang.Class<?> expectedType)
- Specified by:
createValueExpression
in classExpressionFactory
-
getStreamELResolver
public ELResolver getStreamELResolver()
- Overrides:
getStreamELResolver
in classExpressionFactory
- Returns:
- This default implementation returns null
-
-