public class ExpressionFactoryImpl extends ExpressionFactory
ExpressionFactory
Constructor and Description |
---|
ExpressionFactoryImpl() |
Modifier and Type | Method and 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() |
protected ExpressionBuilder |
newExpressionBuilder(java.lang.String expression,
ELContext context) |
getInitFunctionMap, newInstance, newInstance
public java.lang.Object coerceToType(java.lang.Object obj, java.lang.Class<?> type)
ExpressionFactory
coerceToType
in class ExpressionFactory
obj
- The object to be coercedtype
- The type to which the object should be coercedpublic MethodExpression createMethodExpression(ELContext context, java.lang.String expression, java.lang.Class<?> expectedReturnType, java.lang.Class<?>[] expectedParamTypes)
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, java.lang.String expression, java.lang.Class<?> expectedType)
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(java.lang.Object instance, java.lang.Class<?> expectedType)
createValueExpression
in class ExpressionFactory
public ELResolver getStreamELResolver()
getStreamELResolver
in class ExpressionFactory
protected ExpressionBuilder newExpressionBuilder(java.lang.String expression, ELContext context)
Copyright © 2005-2018 Potix Corporation. All Rights Reserved.