Top Description Methods
org.springframework.expression

public Interface ExpressionParser

Known Direct Implementers
org.springframework.expression.common.TemplateAwareExpressionParser

Parses expression strings into compiled expressions that can be evaluated. Supports parsing templates as well as standard expression strings.
Authors
Keith Donald, Andy Clement
Since
3.0

Method Summary

Modifier and TypeMethod and Description
public Expression

Returns:

an evaluator for the parsed expression
parseExpression
(String
the raw expression string to parse
expressionString
)

Parse the expression string and return an Expression object you can use for repeated evaluation.

public Expression

Returns:

an evaluator for the parsed expression
parseExpression
(String
the raw expression string to parse
expressionString
,
ParserContext
a context for influencing this expression parsing routine (optional)
context
)

Parse the expression string and return an Expression object you can use for repeated evaluation.

Method Detail

parseExpressionback to summary
public Expression parseExpression(String expressionString) throws ParseException

Parse the expression string and return an Expression object you can use for repeated evaluation.

Some examples:

    3 + 4
    name.firstName
Parameters
expressionString:String

the raw expression string to parse

Returns:Expression

an evaluator for the parsed expression

Exceptions
ParseException:
an exception occurred during parsing
parseExpressionback to summary
public Expression parseExpression(String expressionString, ParserContext context) throws ParseException

Parse the expression string and return an Expression object you can use for repeated evaluation.

Some examples:

    3 + 4
    name.firstName
Parameters
expressionString:String

the raw expression string to parse

context:ParserContext

a context for influencing this expression parsing routine (optional)

Returns:Expression

an evaluator for the parsed expression

Exceptions
ParseException:
an exception occurred during parsing