Class ChainedContext.Builder

java.lang.Object
cloud.opencode.base.expression.context.ChainedContext.Builder
Enclosing class:
ChainedContext

public static class ChainedContext.Builder extends Object
Builder for ChainedContext ChainedContext 构建器
Since:
JDK 25, opencode-base-expression V1.0.0
Author:
Leon Soo www.LeonSoo.com
  • Constructor Details

    • Builder

      public Builder(EvaluationContext parent)
      Create builder with parent context 使用父上下文创建构建器
      Parameters:
      parent - the parent context | 父上下文
  • Method Details

    • rootObject

      public ChainedContext.Builder rootObject(Object root)
      Set root object 设置根对象
      Parameters:
      root - the root object | 根对象
      Returns:
      this builder | 此构建器
    • variable

      public ChainedContext.Builder variable(String name, Object value)
      Set a variable 设置变量
      Parameters:
      name - the variable name | 变量名
      value - the variable value | 变量值
      Returns:
      this builder | 此构建器
    • build

      public ChainedContext build()
      Build the context 构建上下文
      Returns:
      the context | 上下文