public class

VariableReference

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

Class Overview

Represents a variable reference, eg. #someVar. Note this is different to a *local* variable like $someVar

Summary

[Expand]
Inherited Fields
From class org.springframework.expression.spel.ast.SpelNodeImpl
Public Constructors
VariableReference(String variableName, int pos)
Public Methods
TypedValue getValueInternal(ExpressionState state)
boolean isWritable(ExpressionState expressionState)
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 VariableReference (String variableName, int pos)

Public Methods

public TypedValue getValueInternal (ExpressionState state)

public boolean isWritable (ExpressionState expressionState)

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

Parameters
expressionState 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 ()