Package com.api.jsonata4java.expressions
Class FrameEnvironment
java.lang.Object
com.api.jsonata4java.expressions.FrameEnvironment
- All Implemented Interfaces:
Serializable
ExpressionsVisitor to manage the current block's environment.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFrameEnvironment(FrameEnvironment enclosingFrame) Constructor taking a null enclosing frame to form the root of the environment hierarchy, or an existing enclosing frame -
Method Summary
Modifier and TypeMethodDescriptionbooleanasync()voidDeque<com.fasterxml.jackson.databind.JsonNode>getDeclaredFunction(String fctName) getJsonataFunction(String fctName) com.fasterxml.jackson.databind.JsonNodegetParentNode(int depth) com.fasterxml.jackson.databind.JsonNodegetVariable(String varName) booleanmillis()now()com.fasterxml.jackson.databind.JsonNodecom.fasterxml.jackson.databind.JsonNodecom.fasterxml.jackson.databind.JsonNodepushContext(com.fasterxml.jackson.databind.JsonNode context) voidsetAsync(boolean isAsync) voidsetDeclaredFunction(String fctName, DeclaredFunction fctValue) voidsetJsonataFunction(String fctName, FunctionBase fctValue) voidsetVariable(String varName, com.fasterxml.jackson.databind.JsonNode varValue) int
-
Constructor Details
-
FrameEnvironment
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
-
getDeclaredFunction
-
getJsonataFunction
-
getVariable
-
isEmptyContext
public boolean isEmptyContext() -
millis
-
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)
-