Class NowVariable

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

public class NowVariable extends Object implements org.projectnessie.cel.interpreter.Activation
NowVariable implements Activation, providing a lazily produced timestamp for accessing the variable `now` that's constant within an evaluation.
  • 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
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of a "now" variable.
  • Method Summary

    Modifier and Type
    Method
    Description
    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
  • Constructor Details

    • NowVariable

      public NowVariable()
      Creates an instance of a "now" variable.
  • Method Details

    • 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