public abstract class ExpressionFactory
extends java.lang.Object
Constructor and Description |
---|
ExpressionFactory() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Object |
coerceToType(java.lang.Object obj,
java.lang.Class<?> expectedType) |
abstract MethodExpression |
createMethodExpression(ELContext context,
java.lang.String expression,
java.lang.Class<?> expectedReturnType,
java.lang.Class<?>[] expectedParamTypes) |
abstract ValueExpression |
createValueExpression(ELContext context,
java.lang.String expression,
java.lang.Class<?> expectedType) |
abstract ValueExpression |
createValueExpression(java.lang.Object instance,
java.lang.Class<?> expectedType) |
java.util.Map<java.lang.String,java.lang.reflect.Method> |
getInitFunctionMap() |
ELResolver |
getStreamELResolver() |
static ExpressionFactory |
newInstance()
Create a new
ExpressionFactory . |
static ExpressionFactory |
newInstance(java.util.Properties properties)
Create a new
ExpressionFactory passing in the provided
Properties . |
public static ExpressionFactory newInstance()
ExpressionFactory
. The class to use is determined by
the following search order:
public static ExpressionFactory newInstance(java.util.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, java.lang.String expression, java.lang.Class<?> expectedType)
java.lang.NullPointerException
- If the expected type is null
ELException
- If there are syntax errors in the provided expressionpublic abstract ValueExpression createValueExpression(java.lang.Object instance, java.lang.Class<?> expectedType)
public abstract MethodExpression createMethodExpression(ELContext context, java.lang.String expression, java.lang.Class<?> expectedReturnType, java.lang.Class<?>[] expectedParamTypes)
java.lang.NullPointerException
- If the expected parameters types are null
ELException
- If there are syntax errors in the provided expressionpublic abstract java.lang.Object coerceToType(java.lang.Object obj, java.lang.Class<?> expectedType)
ELException
- If the conversion failspublic ELResolver getStreamELResolver()
public java.util.Map<java.lang.String,java.lang.reflect.Method> getInitFunctionMap()
Copyright © 2000-2014 The Apache Software Foundation. All Rights Reserved.