Uses of Class
io.pebbletemplates.pebble.lexer.Token
-
Packages that use Token Package Description io.pebbletemplates.pebble.lexer io.pebbletemplates.pebble.parser io.pebbletemplates.pebble.tokenParser -
-
Uses of Token in io.pebbletemplates.pebble.lexer
Fields in io.pebbletemplates.pebble.lexer with type parameters of type Token Modifier and Type Field Description private java.util.ArrayList<Token>LexerImpl. tokensThe list of tokens that we find and use to create a TokenStreamprivate java.util.ArrayList<Token>TokenStream. tokensMethods in io.pebbletemplates.pebble.lexer that return Token Modifier and Type Method Description TokenTokenStream. current()Looks at the current token.TokenTokenStream. expect(Token.Type type)Checks the current token to see if it matches the provided type.TokenTokenStream. expect(Token.Type type, java.lang.String value)Checks the current token to see if it matches the provided type.TokenTokenStream. next()Consumes and returns the next token in the stream.TokenTokenStream. peek()Returns the next token in the stream without consuming it.TokenTokenStream. peek(int number)Returns a future token in the stream without consuming any.private TokenLexerImpl. 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 TokenLexerImpl. pushToken(Token.Type type, java.lang.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 Token Modifier and Type Method Description java.util.ArrayList<Token>TokenStream. getTokens()used for testing purposesMethods in io.pebbletemplates.pebble.lexer with parameters of type Token Modifier and Type Method Description private voidLexerImpl. checkForLeadingWhitespaceTrim(Token leadingToken)Constructor parameters in io.pebbletemplates.pebble.lexer with type arguments of type Token Constructor Description TokenStream(java.util.Collection<Token> tokens, java.lang.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 Modifier and Type Method Description booleanStoppingCondition. evaluate(Token data)private booleanExpressionParser. isBinary(Token token)Checks if a token is a binary operator.private booleanExpressionParser. isUnary(Token token)Checks if a token is a unary operator. -
Uses of Token in io.pebbletemplates.pebble.tokenParser
Methods in io.pebbletemplates.pebble.tokenParser with parameters of type Token Modifier and Type Method Description RenderableNodeAutoEscapeTokenParser. parse(Token token, Parser parser)RenderableNodeBlockTokenParser. parse(Token token, Parser parser)RenderableNodeCacheTokenParser. parse(Token token, Parser parser)RenderableNodeEmbedTokenParser. parse(Token token, Parser parser)RenderableNodeExtendsTokenParser. parse(Token token, Parser parser)RenderableNodeFilterTokenParser. parse(Token token, Parser parser)RenderableNodeFlushTokenParser. parse(Token token, Parser parser)RenderableNodeForTokenParser. parse(Token token, Parser parser)RenderableNodeFromTokenParser. parse(Token token, Parser parser)RenderableNodeIfTokenParser. parse(Token token, Parser parser)RenderableNodeImportTokenParser. parse(Token token, Parser parser)RenderableNodeIncludeTokenParser. parse(Token token, Parser parser)RenderableNodeMacroTokenParser. parse(Token token, Parser parser)RenderableNodeParallelTokenParser. parse(Token token, Parser parser)RenderableNodeSetTokenParser. parse(Token token, Parser parser)RenderableNodeTokenParser. parse(Token token, Parser parser)The TokenParser is responsible to convert all the necessary tokens into appropriate Nodes.RenderableNodeVerbatimTokenParser. parse(Token token, Parser parser)private BlockNodeEmbedTokenParser. parseBlock(Token token, Parser parser, TokenStream stream)private java.util.List<BlockNode>EmbedTokenParser. parseBlocks(Token token, Parser parser, TokenStream stream)
-