Class ValueRef.NullValueRef

java.lang.Object
org.springframework.expression.spel.ast.ValueRef.NullValueRef
All Implemented Interfaces:
ValueRef
Enclosing interface:
ValueRef

public static class ValueRef.NullValueRef extends Object implements ValueRef
A ValueRef for the null value.
  • Constructor Details

    • NullValueRef

      public NullValueRef()
  • Method Details

    • getValue

      public TypedValue getValue()
      Description copied from interface: ValueRef
      Returns the value this ValueRef points to, it should not require expression component re-evaluation.
      Specified by:
      getValue in interface ValueRef
      Returns:
      the value
    • setValue

      public void setValue(@Nullable Object newValue)
      Description copied from interface: ValueRef
      Sets the value this ValueRef points to, it should not require expression component re-evaluation.
      Specified by:
      setValue in interface ValueRef
      Parameters:
      newValue - the new value
    • isWritable

      public boolean isWritable()
      Description copied from interface: ValueRef
      Indicates whether calling setValue(Object) is supported.
      Specified by:
      isWritable in interface ValueRef
      Returns:
      true if setValue() is supported for this value reference.