Package io.pebbletemplates.pebble.parser
Interface Parser
- All Known Implementing Classes:
ParserImpl
public interface Parser
-
Method Summary
Modifier and TypeMethodDescriptionProvides the stream of tokens which ultimately need to be "parsed" into Nodes.parse
(TokenStream stream) void
pushBlockStack
(String blockName) subparse()
subparse
(StoppingCondition stopCondition) Parses the existing TokenStream, starting at the current Token, and ending when the stopCondition is fullfilled.
-
Method Details
-
parse
-
subparse
BodyNode subparse() -
getStream
TokenStream getStream()Provides the stream of tokens which ultimately need to be "parsed" into Nodes.- Returns:
- TokenStream
-
subparse
Parses the existing TokenStream, starting at the current Token, and ending when the stopCondition is fullfilled.- Parameters:
stopCondition
- The condition to stop parsing a segment of the template.- Returns:
- A node representing the parsed section
-
getExpressionParser
ExpressionParser getExpressionParser() -
peekBlockStack
String peekBlockStack() -
popBlockStack
String popBlockStack() -
pushBlockStack
-