Class Scope
java.lang.Object
com.schibsted.spt.data.jslt.impl.Scope
- Direct Known Subclasses:
OptimizerScope
-
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)
-
Constructor Details
-
Scope
public Scope(int stackFrameSize)
-
-
Method Details
-
getRoot
-
makeScope
-
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)
-