Top Description Fields Constructors Methods
org.springframework.expression.spel.standard

public Class SpelExpressionParser

extends TemplateAwareExpressionParser
Class Inheritance
Imports
org.springframework.expression.ParseException, .ParserContext, org.springframework.expression.common.TemplateAwareExpressionParser, org.springframework.expression.spel.SpelParserConfiguration, org.springframework.lang.Nullable, org.springframework.util.Assert

SpEL parser. Instances are reusable and thread-safe.
Authors
Andy Clement, Juergen Hoeller, Sam Brannen
Since
3.0

Field Summary

Modifier and TypeField and Description
private final SpelParserConfiguration

Constructor Summary

AccessConstructor and Description
public
SpelExpressionParser()

Create a parser with default settings.

public
SpelExpressionParser(SpelParserConfiguration
custom configuration options
configuration
)

Create a parser with the specified configuration.

Method Summary

Modifier and TypeMethod and Description
protected SpelExpression
doParseExpression(String
the raw expression string to parse
expressionString
,
ParserContext
a context for influencing this expression parsing routine (optional)
context
)

Implements abstract org.springframework.expression.common.TemplateAwareExpressionParser.doParseExpression.

Actually parse the expression string and return an Expression object.

public SpelExpression
parseRaw(String expressionString)

Inherited from org.springframework.expression.common.TemplateAwareExpressionParser:
parseExpressionparseExpression

Field Detail

configurationback to summary
private final SpelParserConfiguration configuration

Constructor Detail

SpelExpressionParserback to summary
public SpelExpressionParser()

Create a parser with default settings.

SpelExpressionParserback to summary
public SpelExpressionParser(SpelParserConfiguration configuration)

Create a parser with the specified configuration.

Parameters
configuration:SpelParserConfiguration

custom configuration options

Method Detail

doParseExpressionback to summary
protected SpelExpression doParseExpression(String expressionString, ParserContext context) throws ParseException

Implements abstract org.springframework.expression.common.TemplateAwareExpressionParser.doParseExpression.

Doc from org.springframework.expression.common.TemplateAwareExpressionParser.doParseExpression.

Actually parse the expression string and return an Expression object.

Parameters
expressionString:String

the raw expression string to parse

context:ParserContext

a context for influencing this expression parsing routine (optional)

Returns:SpelExpression

an evaluator for the parsed expression

Annotations
@Override
Exceptions
ParseException:
an exception occurred during parsing
parseRawback to summary
public SpelExpression parseRaw(String expressionString) throws ParseException