org.springframework.expression.spel.standard
Class SpelExpressionParser
java.lang.Object
org.springframework.expression.common.TemplateAwareExpressionParser
org.springframework.expression.spel.standard.SpelExpressionParser
- All Implemented Interfaces:
- ExpressionParser
public class SpelExpressionParser
- extends TemplateAwareExpressionParser
SpEL parser. Instances are reusable and thread safe.
- Since:
- 3.0
- Author:
- Andy Clement
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpelExpressionParser
public SpelExpressionParser(int configuration)
- Create a parser with some configured behaviour. Supported configuration
bit flags can be seen in
SpelExpressionParserConfiguration
- Parameters:
configuration - bitflags for configuration options
SpelExpressionParser
public SpelExpressionParser()
- Create a parser with default behaviour.
doParseExpression
protected Expression doParseExpression(String expressionString,
ParserContext context)
throws ParseException
- Description copied from class:
TemplateAwareExpressionParser
- Actually parse the expression string and return an Expression object.
- Specified by:
doParseExpression in class TemplateAwareExpressionParser
- Parameters:
expressionString - the raw expression string to parsecontext - a context for influencing this expression parsing routine (optional)
- Returns:
- an evaluator for the parsed expression
- Throws:
ParseException - an exception occurred during parsing
parse
public SpelExpression parse(String expressionString)
throws ParseException
- Throws:
ParseException