write method

  1. @override
void write(
  1. EvaluationContext context,
  2. Object target,
  3. String name,
  4. Object? newValue,
)
override

Stores newValue in property name of target; only called after canWrite returned true.

An exception other than a SpelEvaluationException is reported as exceptionDuringPropertyWrite (EL1034E).

Implementation

@override
void write(
  EvaluationContext context,
  Object target,
  String name,
  Object? newValue,
) => throw UnsupportedError('Beans cannot be assigned');