Uses of Class
io.pebbletemplates.pebble.lexer.Token
Packages that use Token
Package
Description
-
Uses of Token in io.pebbletemplates.pebble.lexer
Fields in io.pebbletemplates.pebble.lexer with type parameters of type TokenModifier and TypeFieldDescriptionLexerImpl.tokens
The list of tokens that we find and use to create a TokenStreamTokenStream.tokens
Methods in io.pebbletemplates.pebble.lexer that return TokenModifier and TypeMethodDescriptionTokenStream.current()
Looks at the current token.TokenStream.expect
(Token.Type type) Checks the current token to see if it matches the provided type.TokenStream.expect
(Token.Type type, String value) Checks the current token to see if it matches the provided type.TokenStream.next()
Consumes and returns the next token in the stream.TokenStream.peek()
Returns the next token in the stream without consuming it.TokenStream.peek
(int number) Returns a future token in the stream without consuming any.private Token
LexerImpl.pushToken
(Token.Type type) Create a Token with a Token Type but without no value onto the list of tokens that we are maintaining.private Token
LexerImpl.pushToken
(Token.Type type, String value) Create a Token of a certain type and value and push it into the list of tokens that we are maintaining.Methods in io.pebbletemplates.pebble.lexer that return types with arguments of type TokenMethods in io.pebbletemplates.pebble.lexer with parameters of type TokenModifier and TypeMethodDescriptionprivate void
LexerImpl.checkForLeadingWhitespaceTrim
(Token leadingToken) Constructor parameters in io.pebbletemplates.pebble.lexer with type arguments of type TokenModifierConstructorDescriptionTokenStream
(Collection<Token> tokens, String name) Constructor for a Token Stream -
Uses of Token in io.pebbletemplates.pebble.parser
Methods in io.pebbletemplates.pebble.parser with parameters of type Token -
Uses of Token in io.pebbletemplates.pebble.tokenParser
Methods in io.pebbletemplates.pebble.tokenParser with parameters of type TokenModifier and TypeMethodDescriptionThe TokenParser is responsible to convert all the necessary tokens into appropriate Nodes.private BlockNode
EmbedTokenParser.parseBlock
(Token token, Parser parser, TokenStream stream) EmbedTokenParser.parseBlocks
(Token token, Parser parser, TokenStream stream)