public class

Indexer

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

Class Overview

An Indexer can index into some proceeding structure to access a particular piece of it. Supported structures are: strings/collections (lists/sets)/arrays

Summary

[Expand]
Inherited Fields
From class org.springframework.expression.spel.ast.SpelNodeImpl
Public Constructors
Indexer(int pos, SpelNodeImpl expr)
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 newValue)
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 Indexer (int pos, SpelNodeImpl expr)

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 newValue)

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)
newValue the new value

public String toStringAST ()