Class SpelExpressionParser
java.lang.Object
org.springframework.expression.common.TemplateAwareExpressionParser
org.springframework.expression.spel.standard.SpelExpressionParser
- All Implemented Interfaces:
- ExpressionParser
SpEL parser. Instances are reusable and thread-safe.
- Since:
- 3.0
- Author:
- Andy Clement, Juergen Hoeller, Sam Brannen
- 
Constructor SummaryConstructorsConstructorDescriptionCreate a parser with default settings.SpelExpressionParser(SpelParserConfiguration configuration) Create a parser with the specified configuration.
- 
Method SummaryModifier and TypeMethodDescriptionprotected SpelExpressiondoParseExpression(String expressionString, ParserContext context) Actually parse the expression string and return an Expression object.Methods inherited from class org.springframework.expression.common.TemplateAwareExpressionParserparseExpression, parseExpression
- 
Constructor Details- 
SpelExpressionParserpublic SpelExpressionParser()Create a parser with default settings.
- 
SpelExpressionParserCreate a parser with the specified configuration.- Parameters:
- configuration- custom configuration options
 
 
- 
- 
Method Details- 
parseRaw- Throws:
- ParseException
 
- 
doParseExpressionprotected SpelExpression doParseExpression(String expressionString, @Nullable ParserContext context) throws ParseException Description copied from class:TemplateAwareExpressionParserActually parse the expression string and return an Expression object.- Specified by:
- doParseExpressionin class- TemplateAwareExpressionParser
- Parameters:
- expressionString- the raw expression string to parse
- context- a context for influencing this expression parsing routine (optional)
- Returns:
- an evaluator for the parsed expression
- Throws:
- ParseException- an exception occurred during parsing
 
 
-