org.zkoss.zel
Class ExpressionFactory
java.lang.Object
org.zkoss.zel.ExpressionFactory
- Direct Known Subclasses:
- ExpressionFactoryImpl
public abstract class ExpressionFactory
- extends Object
- Since:
- 2.1
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpressionFactory
public ExpressionFactory()
coerceToType
public abstract Object coerceToType(Object obj,
Class<?> expectedType)
throws ELException
- Throws:
ELException
createValueExpression
public abstract ValueExpression createValueExpression(ELContext context,
String expression,
Class<?> expectedType)
throws NullPointerException,
ELException
- Throws:
NullPointerException
ELException
createValueExpression
public abstract ValueExpression createValueExpression(Object instance,
Class<?> expectedType)
createMethodExpression
public abstract MethodExpression createMethodExpression(ELContext context,
String expression,
Class<?> expectedReturnType,
Class<?>[] expectedParamTypes)
throws ELException,
NullPointerException
- Throws:
ELException
NullPointerException
newInstance
public static ExpressionFactory newInstance()
- Create a new
ExpressionFactory. The class to use is determined by
the following search order:
- services API (META-INF/services/org.zkoss.zel.ExpressionFactory)
- $JRE_HOME/lib/el.properties - key org.zkoss.zel.ExpressionFactory
- org.zkoss.zel.ExpressionFactory
- Platform default implementation -
org.zkoss.zel.impl.ExpressionFactoryImpl
- Returns:
- the new ExpressionFactory
newInstance
public static ExpressionFactory newInstance(Properties properties)
- Create a new
ExpressionFactory passing in the provided
Properties. Search order is the same as newInstance().
- Parameters:
properties - the properties to be passed to the new instance (may be null)
- Returns:
- the new ExpressionFactory
Copyright © 2014. All rights reserved.