Class BeanContext.Builder
java.lang.Object
cloud.opencode.base.expression.context.BeanContext.Builder
- Enclosing class:
BeanContext
Builder for BeanContext
BeanContext 构建器
- 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 设置函数注册表rootObject(Object root) Set root object 设置根对象Set sandbox 设置沙箱Set a variable 设置变量
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
rootObject
Set root object 设置根对象- Parameters:
root- the root bean | 根 Bean- Returns:
- this builder | 此构建器
-
functionRegistry
Set function registry 设置函数注册表- Parameters:
registry- the registry | 注册表- Returns:
- this builder | 此构建器
-
sandbox
Set sandbox 设置沙箱- Parameters:
sandbox- the sandbox | 沙箱- Returns:
- this builder | 此构建器
-
variable
Set a variable 设置变量- Parameters:
name- the variable name | 变量名value- the variable value | 变量值- Returns:
- this builder | 此构建器
-
build
-