类 SpelExpressionParser
- java.lang.Object
- org.springframework.expression.common.TemplateAwareExpressionParser
- org.springframework.expression.spel.standard.SpelExpressionParser
- 所有已实现的接口:
ExpressionParser
public class SpelExpressionParser extends TemplateAwareExpressionParser
SpEL parser. Instances are reusable and thread-safe.- 从以下版本开始:
- 3.0
- 作者:
- Andy Clement, Juergen Hoeller
构造器概要
构造器 构造器 说明 SpelExpressionParser()
Create a parser with default settings.SpelExpressionParser(SpelParserConfiguration configuration)
Create a parser with the specified configuration.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected SpelExpression
doParseExpression(String expressionString, ParserContext context)
Actually parse the expression string and return an Expression object.SpelExpression
parseRaw(String expressionString)
从类继承的方法 org.springframework.expression.common.TemplateAwareExpressionParser
parseExpression, parseExpression
构造器详细资料
SpelExpressionParser
public SpelExpressionParser()
Create a parser with default settings.
SpelExpressionParser
public SpelExpressionParser(SpelParserConfiguration configuration)
Create a parser with the specified configuration.- 参数:
configuration
- custom configuration options
方法详细资料
parseRaw
public SpelExpression parseRaw(String expressionString) throws ParseException
doParseExpression
protected SpelExpression doParseExpression(String expressionString, ParserContext context) throws ParseException
从类复制的说明:TemplateAwareExpressionParser
Actually parse the expression string and return an Expression object.- 指定者:
doParseExpression
在类中TemplateAwareExpressionParser
- 参数:
expressionString
- the raw expression string to parsecontext
- a context for influencing this expression parsing routine (optional)- 返回:
- an evaluator for the parsed expression
- 抛出:
ParseException
- an exception occurred during parsing