Package com.hubspot.jinjava.interpret
Class CallStack
java.lang.Object
com.hubspot.jinjava.interpret.CallStack
-
Constructor Summary
ConstructorsConstructorDescriptionCallStack
(CallStack parent, Class<? extends TagCycleException> exceptionClass) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
int
boolean
isEmpty()
peek()
pop()
void
void
pushWithMaxDepth
(String path, int maxDepth, int lineNumber, int startPosition) void
pushWithoutCycleCheck
(String path, int lineNumber, int startPosition) This is added to allow for recursive macro calls.
-
Constructor Details
-
CallStack
-
-
Method Details
-
contains
-
pushWithoutCycleCheck
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
-
push
-
pop
-
peek
-
getTopLineNumber
public int getTopLineNumber() -
getTopStartPosition
public int getTopStartPosition() -
isEmpty
public boolean isEmpty()
-