replace Logic
A mutable map that manages replacement logic for specific types.
Each entry in the map associates a class type with a corresponding function that defines the logic for replacing or transforming values for that type.
Key: The class type for which replacement logic is defined.
Value: A function that takes three parameters:
The original value of type
Any
.A string representing an identifier or key.
A new value of type
Any
to replace or transform.
The function returns the transformed or replaced value.
This map is primarily utilized by the registerReplacementLogic
method to dynamically add replacement or transformation logic for various types.