Class FrameEnvironment

java.lang.Object
com.api.jsonata4java.expressions.FrameEnvironment
All Implemented Interfaces:
Serializable

public class FrameEnvironment extends Object implements Serializable
ExpressionsVisitor to manage the current block's environment.
See Also:
  • Constructor Details

    • FrameEnvironment

      public FrameEnvironment(FrameEnvironment enclosingFrame)
      Constructor taking a null enclosing frame to form the root of the environment hierarchy, or an existing enclosing frame
      Parameters:
      enclosingFrame -
  • Method Details

    • async

      public boolean async()
    • clearContext

      public void clearContext()
    • getContextStack

      public Deque<com.fasterxml.jackson.databind.JsonNode> getContextStack()
    • getDeclaredFunction

      public DeclaredFunction getDeclaredFunction(String fctName)
    • getJsonataFunction

      public FunctionBase getJsonataFunction(String fctName)
    • getVariable

      public com.fasterxml.jackson.databind.JsonNode getVariable(String varName)
    • isEmptyContext

      public boolean isEmptyContext()
    • millis

      public Long millis()
    • now

      public String now()
    • peekContext

      public com.fasterxml.jackson.databind.JsonNode peekContext()
    • popContext

      public com.fasterxml.jackson.databind.JsonNode popContext()
    • pushContext

      public com.fasterxml.jackson.databind.JsonNode pushContext(com.fasterxml.jackson.databind.JsonNode context)
    • setAsync

      public void setAsync(boolean isAsync)
    • setDeclaredFunction

      public void setDeclaredFunction(String fctName, DeclaredFunction fctValue) throws EvaluateRuntimeException
      Throws:
      EvaluateRuntimeException
    • setJsonataFunction

      public void setJsonataFunction(String fctName, FunctionBase fctValue) throws EvaluateRuntimeException
      Throws:
      EvaluateRuntimeException
    • setVariable

      public void setVariable(String varName, com.fasterxml.jackson.databind.JsonNode varValue) throws EvaluateRuntimeException
      Throws:
      EvaluateRuntimeException
    • sizeContext

      public int sizeContext()
    • getParentNode

      public com.fasterxml.jackson.databind.JsonNode getParentNode(int depth)