|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zel.ExpressionFactory
public abstract class ExpressionFactory
| Constructor Summary | |
|---|---|
ExpressionFactory()
|
|
| Method Summary | |
|---|---|
abstract Object |
coerceToType(Object obj,
Class<?> expectedType)
Coerce the supplied object to the requested type. |
abstract MethodExpression |
createMethodExpression(ELContext context,
String expression,
Class<?> expectedReturnType,
Class<?>[] expectedParamTypes)
Create a new method expression instance. |
abstract ValueExpression |
createValueExpression(ELContext context,
String expression,
Class<?> expectedType)
Create a new value expression. |
abstract ValueExpression |
createValueExpression(Object instance,
Class<?> expectedType)
|
Map<String,Method> |
getInitFunctionMap()
|
ELResolver |
getStreamELResolver()
|
static ExpressionFactory |
newInstance()
Create a new ExpressionFactory. |
static ExpressionFactory |
newInstance(Properties properties)
Create a new ExpressionFactory passing in the provided
Properties. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExpressionFactory()
| Method Detail |
|---|
public static ExpressionFactory newInstance()
ExpressionFactory. The class to use is determined by
the following search order:
public static ExpressionFactory newInstance(Properties properties)
ExpressionFactory passing in the provided
Properties. Search order is the same as newInstance().
properties - the properties to be passed to the new instance (may be null)
public abstract ValueExpression createValueExpression(ELContext context,
String expression,
Class<?> expectedType)
context - The EL context for this evaluationexpression - The String representation of the value expressionexpectedType - The expected type of the result of evaluating the
expression
NullPointerException - If the expected type is null
ELException - If there are syntax errors in the provided expression
public abstract ValueExpression createValueExpression(Object instance,
Class<?> expectedType)
public abstract MethodExpression createMethodExpression(ELContext context,
String expression,
Class<?> expectedReturnType,
Class<?>[] expectedParamTypes)
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
NullPointerException - If the expected parameters types are null
ELException - If there are syntax errors in the provided expression
public abstract Object coerceToType(Object obj,
Class<?> expectedType)
obj - The object to be coercedexpectedType - The type to which the object should be coerced
ELException - If the conversion failspublic ELResolver getStreamELResolver()
public Map<String,Method> getInitFunctionMap()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||