Files
fantaibao-qlexpress4/src/main/java/com/alibaba/qlexpress4/runtime/context/MapExpressContext.java
small-red-hat 2dfed7464e
Some checks failed
Reduce Adoc / reduce (push) Failing after 57s
Java Unit Test with Maven / test (push) Failing after 1m42s
first
2025-12-29 13:59:13 +08:00

24 lines
572 B
Java

package com.alibaba.qlexpress4.runtime.context;
import com.alibaba.qlexpress4.runtime.Value;
import com.alibaba.qlexpress4.runtime.data.MapItemValue;
import java.util.Map;
/**
* Author: DQinYuan
*/
public class MapExpressContext implements ExpressContext {
private final Map<String, Object> source;
public MapExpressContext(Map<String, Object> source) {
this.source = source;
}
@Override
public Value get(Map<String, Object> attachments, String variableName) {
return new MapItemValue(source, variableName);
}
}