Package javax.el
Class ExpressionFactory
- java.lang.Object
- 
- javax.el.ExpressionFactory
 
- 
 public abstract class ExpressionFactory extends java.lang.Object- Since:
- 2.1
 
- 
- 
Constructor SummaryConstructors Constructor Description ExpressionFactory()
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.ObjectcoerceToType(java.lang.Object obj, java.lang.Class<?> expectedType)Coerce the supplied object to the requested type.abstract MethodExpressioncreateMethodExpression(ELContext context, java.lang.String expression, java.lang.Class<?> expectedReturnType, java.lang.Class<?>[] expectedParamTypes)Create a new method expression instance.abstract ValueExpressioncreateValueExpression(java.lang.Object instance, java.lang.Class<?> expectedType)abstract ValueExpressioncreateValueExpression(ELContext context, java.lang.String expression, java.lang.Class<?> expectedType)Create a new value expression.java.util.Map<java.lang.String,java.lang.reflect.Method>getInitFunctionMap()ELResolvergetStreamELResolver()static ExpressionFactorynewInstance()Create a newExpressionFactory.static ExpressionFactorynewInstance(java.util.Properties properties)Create a newExpressionFactorypassing in the providedProperties.
 
- 
- 
- 
Method Detail- 
newInstancepublic static ExpressionFactory newInstance() Create a newExpressionFactory. The class to use is determined by the following search order:- services API (META-INF/services/javax.el.ExpressionFactory)
- $JRE_HOME/lib/el.properties - key javax.el.ExpressionFactory
- javax.el.ExpressionFactory
- Platform default implementation - org.apache.el.ExpressionFactoryImpl
 - Returns:
- the new ExpressionFactory
 
 - 
newInstancepublic static ExpressionFactory newInstance(java.util.Properties properties) Create a newExpressionFactorypassing in the providedProperties. Search order is the same asnewInstance().- Parameters:
- properties- the properties to be passed to the new instance (may be null)
- Returns:
- the new ExpressionFactory
 
 - 
createValueExpressionpublic abstract ValueExpression createValueExpression(ELContext context, java.lang.String expression, java.lang.Class<?> expectedType) Create a new value expression.- Parameters:
- context- The EL context for this evaluation
- expression- The String representation of the value expression
- expectedType- The expected type of the result of evaluating the expression
- Returns:
- A new value expression formed from the input parameters
- Throws:
- java.lang.NullPointerException- If the expected type is- null
- ELException- If there are syntax errors in the provided expression
 
 - 
createValueExpressionpublic abstract ValueExpression createValueExpression(java.lang.Object instance, java.lang.Class<?> expectedType) 
 - 
createMethodExpressionpublic abstract MethodExpression createMethodExpression(ELContext context, java.lang.String expression, java.lang.Class<?> expectedReturnType, java.lang.Class<?>[] expectedParamTypes) Create a new method expression instance.- Parameters:
- context- The EL context for this evaluation
- expression- The String representation of the method expression
- expectedReturnType- The expected type of the result of invoking the method
- expectedParamTypes- The expected types of the input parameters
- Returns:
- A new method expression formed from the input parameters.
- Throws:
- java.lang.NullPointerException- If the expected parameters types are- null
- ELException- If there are syntax errors in the provided expression
 
 - 
coerceToTypepublic abstract java.lang.Object coerceToType(java.lang.Object obj, java.lang.Class<?> expectedType)Coerce the supplied object to the requested type.- Parameters:
- obj- The object to be coerced
- expectedType- The type to which the object should be coerced
- Returns:
- An instance of the requested type.
- Throws:
- ELException- If the conversion fails
 
 - 
getStreamELResolverpublic ELResolver getStreamELResolver() - Returns:
- This default implementation returns null
- Since:
- EL 3.0
 
 - 
getInitFunctionMappublic java.util.Map<java.lang.String,java.lang.reflect.Method> getInitFunctionMap() - Returns:
- This default implementation returns null
- Since:
- EL 3.0
 
 
- 
 
-