Package com.schibsted.spt.data.jslt.impl
Class Scope
java.lang.Object
com.schibsted.spt.data.jslt.impl.Scope
- Direct Known Subclasses:
OptimizerScope
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private com.fasterxml.jackson.databind.JsonNode[]
private static final int
private Deque
<com.fasterxml.jackson.databind.JsonNode[]> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
enterFunction
(int stackFrameSize) static Scope
getRoot
(int stackFrameSize) com.fasterxml.jackson.databind.JsonNode
getValue
(int slot) void
static Scope
makeScope
(Map<String, com.fasterxml.jackson.databind.JsonNode> variables, int stackFrameSize, Map<String, Integer> parameterSlots) Creates an initialized scope with values for variables supplied by client code into the JSLT expression.void
setValue
(int slot, com.fasterxml.jackson.databind.JsonNode value)
-
Field Details
-
globalStackFrame
private com.fasterxml.jackson.databind.JsonNode[] globalStackFrame -
localStackFrames
-
BITMASK
private static final int BITMASK- See Also:
-
INVERSE
private static final int INVERSE- See Also:
-
-
Constructor Details
-
Scope
public Scope(int stackFrameSize)
-
-
Method Details
-
getRoot
-
makeScope
public static Scope makeScope(Map<String, com.fasterxml.jackson.databind.JsonNode> variables, int stackFrameSize, Map<String, Integer> parameterSlots) Creates an initialized scope with values for variables supplied by client code into the JSLT expression. -
enterFunction
public void enterFunction(int stackFrameSize) -
leaveFunction
public void leaveFunction() -
getValue
public com.fasterxml.jackson.databind.JsonNode getValue(int slot) -
setValue
public void setValue(int slot, com.fasterxml.jackson.databind.JsonNode value)
-