Package com.api.jsonata4java.expressions
Class FrameEnvironment
- java.lang.Object
-
- com.api.jsonata4java.expressions.FrameEnvironment
-
- All Implemented Interfaces:
Serializable
public class FrameEnvironment extends Object implements Serializable
ExpressionsVisitorto manage the current block's environment.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FrameEnvironment(FrameEnvironment enclosingFrame)Constructor taking a null enclosing frame to form the root of the environment hierarchy, or an existing enclosing frame
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanasync()voidclearContext()Deque<com.fasterxml.jackson.databind.JsonNode>getContextStack()DeclaredFunctiongetDeclaredFunction(String fctName)FunctiongetJsonataFunction(String fctName)com.fasterxml.jackson.databind.JsonNodegetParentNode(int depth)com.fasterxml.jackson.databind.JsonNodegetVariable(String varName)booleanisEmptyContext()Longmillis()Stringnow()com.fasterxml.jackson.databind.JsonNodepeekContext()com.fasterxml.jackson.databind.JsonNodepopContext()com.fasterxml.jackson.databind.JsonNodepushContext(com.fasterxml.jackson.databind.JsonNode context)voidsetAsync(boolean isAsync)voidsetDeclaredFunction(String fctName, DeclaredFunction fctValue)voidsetJsonataFunction(String fctName, Function fctValue)voidsetVariable(String varName, com.fasterxml.jackson.databind.JsonNode varValue)intsizeContext()
-
-
-
Constructor Detail
-
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 Detail
-
async
public boolean async()
-
clearContext
public void clearContext()
-
getContextStack
public Deque<com.fasterxml.jackson.databind.JsonNode> getContextStack()
-
getDeclaredFunction
public DeclaredFunction getDeclaredFunction(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, Function 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)
-
-