Class MapContext.Builder
java.lang.Object
cloud.opencode.base.expression.context.MapContext.Builder
- Enclosing class:
MapContext
Builder for MapContext
MapContext 构建器
- Since:
- JDK 25, opencode-base-expression V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the context 构建上下文functionRegistry(FunctionRegistry registry) Set function registry 设置函数注册表Set sandbox 设置沙箱Set a variable 设置变量Set all variables 设置所有变量
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
variable
Set a variable 设置变量- Parameters:
name- the variable name | 变量名value- the variable value | 变量值- Returns:
- this builder | 此构建器
-
variables
Set all variables 设置所有变量- Parameters:
vars- the variable map | 变量映射- Returns:
- this builder | 此构建器
-
functionRegistry
Set function registry 设置函数注册表- Parameters:
registry- the registry | 注册表- Returns:
- this builder | 此构建器
-
sandbox
Set sandbox 设置沙箱- Parameters:
sandbox- the sandbox | 沙箱- Returns:
- this builder | 此构建器
-
build
-