field capture refinements

This commit is contained in:
Jonathan Shook 2025-01-02 12:14:55 -06:00
parent 7312d685f7
commit 0574203536
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ public class OpCapture {
OP op = dispenser.getOp(0L);
if (op instanceof UniformVariableCapture<?> captureF) {
Function<?, Map<String,?>> function = captureF.initCaptureF(captures);
Function<?, Map<String,?>> function = captureF.captureF(captures);
return new CapturingOpDispenser(adapter, pop, dispenser, function);
} else {
throw new OpConfigError(

View File

@ -39,5 +39,5 @@ import java.util.function.Function;
/// additional phase of type validation and coercion. If required types are not compatible a
/// variable capture error should be thrown.
public interface UniformVariableCapture<RESULT> {
Function<RESULT,Map<String,?>> initCaptureF(CapturePoints<RESULT> points);
Function<RESULT,Map<String,?>> captureF(CapturePoints<RESULT> points);
}