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 intprivate com.fasterxml.jackson.databind.JsonNode[]private static final intprivate Deque<com.fasterxml.jackson.databind.JsonNode[]> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidenterFunction(int stackFrameSize) static ScopegetRoot(int stackFrameSize) com.fasterxml.jackson.databind.JsonNodegetValue(int slot) voidstatic ScopemakeScope(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.voidsetValue(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)
-