public class

CompoundExpression

extends SpelNodeImpl
java.lang.Object
   ↳ org.springframework.expression.spel.ast.SpelNodeImpl
     ↳ org.springframework.expression.spel.ast.CompoundExpression

Class Overview

Represents a DOT separated expression sequence, such as 'property1.property2.methodOne()'

Summary

[Expand]
Inherited Fields
From class org.springframework.expression.spel.ast.SpelNodeImpl
Public Constructors
CompoundExpression(int pos, SpelNodeImpl... expressionComponents)
Public Methods
TypedValue getValueInternal(ExpressionState state)
Evalutes a compound expression.
boolean isWritable(ExpressionState state)
Determine if this expression node will support a setValue() call.
void setValue(ExpressionState state, Object value)
Evaluate the expression to a node and then set the new value on that node.
String toStringAST()
[Expand]
Inherited Methods
From class org.springframework.expression.spel.ast.SpelNodeImpl
From class java.lang.Object
From interface org.springframework.expression.spel.SpelNode

Public Constructors

public CompoundExpression (int pos, SpelNodeImpl... expressionComponents)

Public Methods

public TypedValue getValueInternal (ExpressionState state)

Evalutes a compound expression. This involves evaluating each piece in turn and the return value from each piece is the active context object for the subsequent piece.

Parameters
state the state in which the expression is being evaluated
Returns
  • the final value from the last piece of the compound expression

public boolean isWritable (ExpressionState state)

Determine if this expression node will support a setValue() call.

Parameters
state the current expression state (includes the context)
Returns
  • true if the expression node will allow setValue()

public void setValue (ExpressionState state, Object value)

Evaluate the expression to a node and then set the new value on that node. For example, if the expression evaluates to a property reference then the property will be set to the new value.

Parameters
state the current expression state (includes the context)
value the new value

public String toStringAST ()