java.lang.Object
build.buf.protovalidate.internal.expression.Variable
All Implemented Interfaces:
org.projectnessie.cel.interpreter.Activation

public class Variable extends Object implements org.projectnessie.cel.interpreter.Activation
Variable implements Activation, providing a lightweight named variable to cel.Program executions.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.projectnessie.cel.interpreter.Activation

    org.projectnessie.cel.interpreter.Activation.FunctionActivation, org.projectnessie.cel.interpreter.Activation.HierarchicalActivation, org.projectnessie.cel.interpreter.Activation.MapActivation, org.projectnessie.cel.interpreter.Activation.PartActivation, org.projectnessie.cel.interpreter.Activation.PartialActivation, org.projectnessie.cel.interpreter.Activation.VarActivation
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Variable
    Creates a new "rules" variable.
    static Variable
    Creates a new "this" variable.
    org.projectnessie.cel.interpreter.Activation
     
    org.projectnessie.cel.interpreter.ResolvedValue
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Method Details

    • newThisVariable

      public static Variable newThisVariable(@Nullable Object val)
      Creates a new "this" variable.
      Parameters:
      val - the value.
      Returns:
      Variable.
    • newRulesVariable

      public static Variable newRulesVariable(Object val)
      Creates a new "rules" variable.
      Parameters:
      val - the value.
      Returns:
      Variable.
    • resolveName

      public org.projectnessie.cel.interpreter.ResolvedValue resolveName(String name)
      Specified by:
      resolveName in interface org.projectnessie.cel.interpreter.Activation
    • parent

      public org.projectnessie.cel.interpreter.Activation parent()
      Specified by:
      parent in interface org.projectnessie.cel.interpreter.Activation