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<?> targetType)
Coerces an object to a specific type according to the type conversion
rules.
|
abstract MethodExpression |
createMethodExpression(ELContext context,
java.lang.String expression,
java.lang.Class<?> expectedReturnType,
java.lang.Class<?>[] expectedParamTypes)
Parses an expression into a
MethodExpression . |
abstract ValueExpression |
createValueExpression(ELContext context,
java.lang.String expression,
java.lang.Class<?> expectedType)
Parses an expression into a
ValueExpression . |
abstract ValueExpression |
createValueExpression(java.lang.Object instance,
java.lang.Class<?> expectedType)
Creates a
ValueExpression that wraps an object. |
public abstract ValueExpression createValueExpression(ELContext context, java.lang.String expression, java.lang.Class<?> expectedType) throws java.lang.NullPointerException, ELException
ValueExpression
.java.lang.NullPointerException
ELException
public abstract ValueExpression createValueExpression(java.lang.Object instance, java.lang.Class<?> expectedType)
ValueExpression
that wraps an object.public abstract MethodExpression createMethodExpression(ELContext context, java.lang.String expression, java.lang.Class<?> expectedReturnType, java.lang.Class<?>[] expectedParamTypes) throws java.lang.NullPointerException, ELException
MethodExpression
.java.lang.NullPointerException
ELException
public abstract java.lang.Object coerceToType(java.lang.Object obj, java.lang.Class<?> targetType) throws ELException
ELException