Class CallStack

java.lang.Object
com.hubspot.jinjava.interpret.CallStack

public class CallStack extends Object
  • Constructor Details

  • Method Details

    • contains

      public boolean contains(String path)
    • pushWithoutCycleCheck

      public void pushWithoutCycleCheck(String path, int lineNumber, int startPosition)
      This is added to allow for recursive macro calls. Adds the given path to the call stack without checking for a cycle.
      Parameters:
      path - the path to be added.
    • pushWithMaxDepth

      public void pushWithMaxDepth(String path, int maxDepth, int lineNumber, int startPosition)
    • push

      public void push(String path, int lineNumber, int startPosition)
    • pop

      public Optional<String> pop()
    • peek

      public Optional<String> peek()
    • getTopLineNumber

      public int getTopLineNumber()
    • getTopStartPosition

      public int getTopStartPosition()
    • isEmpty

      public boolean isEmpty()