Package io.pebbletemplates.pebble.parser
Class ParserImpl
java.lang.Object
io.pebbletemplates.pebble.parser.ParserImpl
- All Implemented Interfaces:
Parser
-
Constructor Summary
ConstructorsConstructorDescriptionParserImpl(Map<String, UnaryOperator> unaryOperators, Map<String, BinaryOperator> binaryOperators, Map<String, TokenParser> tokenParsers, ParserOptions parserOptions) Constructor -
Method Summary
Modifier and TypeMethodDescriptionProvides the stream of tokens which ultimately need to be "parsed" into Nodes.parse(TokenStream stream) voidpushBlockStack(String blockName) voidsetStream(TokenStream stream) subparse()subparse(StoppingCondition stopCondition) Parses the existing TokenStream, starting at the current Token, and ending when the stopCondition is fullfilled.
-
Constructor Details
-
ParserImpl
public ParserImpl(Map<String, UnaryOperator> unaryOperators, Map<String, BinaryOperator> binaryOperators, Map<String, TokenParser> tokenParsers, ParserOptions parserOptions) Constructor- Parameters:
binaryOperators- A map of binary operatorsunaryOperators- A map of unary operatorstokenParsers- A map of token parsers
-
-
Method Details
-
parse
-
subparse
-
subparse
Description copied from interface:ParserParses the existing TokenStream, starting at the current Token, and ending when the stopCondition is fullfilled. -
getStream
Description copied from interface:ParserProvides the stream of tokens which ultimately need to be "parsed" into Nodes. -
setStream
-
getExpressionParser
- Specified by:
getExpressionParserin interfaceParser
-
peekBlockStack
- Specified by:
peekBlockStackin interfaceParser
-
popBlockStack
- Specified by:
popBlockStackin interfaceParser
-
pushBlockStack
- Specified by:
pushBlockStackin interfaceParser
-