public class ELExpressionParser extends java.lang.Object implements ExpressionParser
Constructor and Description |
---|
ELExpressionParser(javax.el.ExpressionFactory expressionFactory)
Creates a new EL expression parser for standalone usage.
|
Modifier and Type | Method and Description |
---|---|
ConversionService |
getConversionService()
The conversion service to use to perform type conversions as needed by the Unified EL system.
|
Expression |
parseExpression(java.lang.String expressionString,
ParserContext context)
Parse the expression string and return a compiled Expression object you can use for evaluation.
|
void |
putContextFactory(java.lang.Class<?> contextType,
ELContextFactory contextFactory)
Register the ELContextFactory for expressions that evaluate the given class of context object.
|
void |
setConversionService(ConversionService conversionService)
Sets the conversion service to use to perform type conversions as needed by the Unified EL system.
|
public ELExpressionParser(javax.el.ExpressionFactory expressionFactory)
public ConversionService getConversionService()
DefaultConversionService
.public void setConversionService(ConversionService conversionService)
conversionService
- the conversion service to usepublic void putContextFactory(java.lang.Class<?> contextType, ELContextFactory contextFactory)
contextType
- the expression context classcontextFactory
- the context factory to use for expressions that evaluate those types of contextspublic Expression parseExpression(java.lang.String expressionString, ParserContext context) throws ParserException
ExpressionParser
3 + 4 name.firstName
parseExpression
in interface ExpressionParser
expressionString
- the raw expression string to parsecontext
- a context for influencing this expression parsing routine (optional)ParserException
- an exception occurred during parsing