-
- All Implemented Interfaces:
-
org.jetbrains.kotlinx.jupyter.api.ResultHandlerExecution
,org.jetbrains.kotlinx.jupyter.api.libraries.VariablesSubstitutionAware
public final class ResultHandlerCodeExecution implements ResultHandlerExecution
Execution represented by code snippet. This snippet should return the value.
-
-
Constructor Summary
Constructors Constructor Description ResultHandlerCodeExecution(String code)
-
Method Summary
Modifier and Type Method Description FieldValue
execute(ExecutionHost host, FieldValue result)
ResultHandlerCodeExecution
replaceVariables(Map<String, String> mapping)
Replace variables and return the result. final String
getCode()
-
-
Constructor Detail
-
ResultHandlerCodeExecution
ResultHandlerCodeExecution(String code)
-
-
Method Detail
-
execute
FieldValue execute(ExecutionHost host, FieldValue result)
-
replaceVariables
ResultHandlerCodeExecution replaceVariables(Map<String, String> mapping)
Replace variables and return the result.
- Parameters:
mapping
- maps variables names to their values
-
-
-
-