public class

PropertyOrFieldReference

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

Class Overview

Represents a simple property or field reference.

Summary

[Expand]
Inherited Fields
From class org.springframework.expression.spel.ast.SpelNodeImpl
Public Constructors
PropertyOrFieldReference(boolean nullSafe, String propertyOrFieldName, int pos)
Public Methods
String getName()
TypedValue getValueInternal(ExpressionState state)
boolean isNullSafe()
boolean isWritable(ExpressionState state)
Determine if this expression node will support a setValue() call.
boolean isWritableProperty(String name, ExpressionState state)
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 PropertyOrFieldReference (boolean nullSafe, String propertyOrFieldName, int pos)

Public Methods

public String getName ()

public TypedValue getValueInternal (ExpressionState state)

public boolean isNullSafe ()

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 boolean isWritableProperty (String name, ExpressionState state)

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