org.zkoss.zel.impl
Class ExpressionFactoryImpl
java.lang.Object
org.zkoss.zel.ExpressionFactory
org.zkoss.zel.impl.ExpressionFactoryImpl
public class ExpressionFactoryImpl
- extends ExpressionFactory
- Author:
- Jacob Hookom [jacob@hookom.net]
- See Also:
ExpressionFactory
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpressionFactoryImpl
public ExpressionFactoryImpl()
coerceToType
public Object coerceToType(Object obj,
Class<?> type)
- Description copied from class:
ExpressionFactory
- Coerce the supplied object to the requested type.
- Specified by:
coerceToType in class ExpressionFactory
- 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,
String expression,
Class<?> expectedReturnType,
Class<?>[] expectedParamTypes)
- Description copied from class:
ExpressionFactory
- Create a new method expression instance.
- Specified by:
createMethodExpression in class ExpressionFactory
- 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,
String expression,
Class<?> expectedType)
- Description copied from class:
ExpressionFactory
- Create a new value expression.
- Specified by:
createValueExpression in class ExpressionFactory
- 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(Object instance,
Class<?> expectedType)
- Specified by:
createValueExpression in class ExpressionFactory
getStreamELResolver
public ELResolver getStreamELResolver()
- Overrides:
getStreamELResolver in class ExpressionFactory
- Returns:
- This default implementation returns null
newExpressionBuilder
protected ExpressionBuilder newExpressionBuilder(String expression,
ELContext context)
Copyright © 2015. All rights reserved.