Class Scope

java.lang.Object
com.schibsted.spt.data.jslt.impl.Scope
Direct Known Subclasses:
OptimizerScope

public class Scope extends Object
  • Field Details

    • globalStackFrame

      private com.fasterxml.jackson.databind.JsonNode[] globalStackFrame
    • localStackFrames

      private Deque<com.fasterxml.jackson.databind.JsonNode[]> 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

      public static Scope getRoot(int stackFrameSize)
    • 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)