Interface EvaluationContext

All Superinterfaces:
Structure
All Known Implementing Classes:
ImmutableContext, MutableContext

public interface EvaluationContext extends Structure
The EvaluationContext is a container for arbitrary contextual data that can be used as a basis for dynamic evaluation.
  • Field Details

  • Method Details

    • getTargetingKey

      String getTargetingKey()
    • merge

      EvaluationContext merge(EvaluationContext overridingContext)
      Merges this EvaluationContext object with the second overriding the this in case of conflict.
      Parameters:
      overridingContext - overriding context
      Returns:
      resulting merged context
    • mergeMaps

      static void mergeMaps(Function<Map<String,Value>,Structure> newStructure, Map<String,Value> base, Map<String,Value> overriding)
      Recursively merges the overriding map into the base Value map. The base map is mutated, the overriding map is not. Null maps will cause no-op.
      Parameters:
      newStructure - function to create the right structure(s) for Values
      base - base map to merge
      overriding - overriding map to merge