spring-framework / org.springframework.expression.common

Package org.springframework.expression.common

Types

CompositeStringExpression

open class CompositeStringExpression : Expression

Represents a template expression broken into pieces. Each piece will be an Expression but pure text parts to the template will be represented as LiteralExpression objects. An example of a template expression might be:

 "Hello ${getName()}" 
which will be represented as a CompositeStringExpression of two parts. The first part being a LiteralExpression representing 'Hello ' and the second part being a real expression that will call getName() when invoked.

ExpressionUtils

abstract class ExpressionUtils

Common utility functions that may be used by any Expression Language provider.

LiteralExpression

open class LiteralExpression : Expression

A very simple hardcoded implementation of the Expression interface that represents a string literal. It is used with CompositeStringExpression when representing a template expression which is made up of pieces - some being real expressions to be handled by an EL implementation like SpEL, and some being just textual elements.

TemplateAwareExpressionParser

abstract class TemplateAwareExpressionParser : ExpressionParser

An expression parser that understands templates. It can be subclassed by expression parsers that do not offer first class support for templating.

TemplateParserContext

open class TemplateParserContext : ParserContext

Configurable ParserContext implementation for template parsing. Expects the expression prefix and suffix as constructor arguments.