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. tokens
The list of tokens that we find and use to create a TokenStreamprivate java.util.ArrayList<Token>
TokenStream. tokens
Methods in io.pebbletemplates.pebble.lexer that return Token Modifier and Type Method Description Token
TokenStream. current()
Looks at the current token.Token
TokenStream. expect(Token.Type type)
Checks the current token to see if it matches the provided type.Token
TokenStream. expect(Token.Type type, java.lang.String value)
Checks the current token to see if it matches the provided type.Token
TokenStream. next()
Consumes and returns the next token in the stream.Token
TokenStream. peek()
Returns the next token in the stream without consuming it.Token
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, 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 void
LexerImpl. 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 boolean
StoppingCondition. evaluate(Token data)
private boolean
ExpressionParser. isBinary(Token token)
Checks if a token is a binary operator.private boolean
ExpressionParser. 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 RenderableNode
AutoEscapeTokenParser. parse(Token token, Parser parser)
RenderableNode
BlockTokenParser. parse(Token token, Parser parser)
RenderableNode
CacheTokenParser. parse(Token token, Parser parser)
RenderableNode
EmbedTokenParser. parse(Token token, Parser parser)
RenderableNode
ExtendsTokenParser. parse(Token token, Parser parser)
RenderableNode
FilterTokenParser. parse(Token token, Parser parser)
RenderableNode
FlushTokenParser. parse(Token token, Parser parser)
RenderableNode
ForTokenParser. parse(Token token, Parser parser)
RenderableNode
FromTokenParser. parse(Token token, Parser parser)
RenderableNode
IfTokenParser. parse(Token token, Parser parser)
RenderableNode
ImportTokenParser. parse(Token token, Parser parser)
RenderableNode
IncludeTokenParser. parse(Token token, Parser parser)
RenderableNode
MacroTokenParser. parse(Token token, Parser parser)
RenderableNode
ParallelTokenParser. parse(Token token, Parser parser)
RenderableNode
SetTokenParser. parse(Token token, Parser parser)
RenderableNode
TokenParser. parse(Token token, Parser parser)
The TokenParser is responsible to convert all the necessary tokens into appropriate Nodes.RenderableNode
VerbatimTokenParser. parse(Token token, Parser parser)
private BlockNode
EmbedTokenParser. parseBlock(Token token, Parser parser, TokenStream stream)
private java.util.List<BlockNode>
EmbedTokenParser. parseBlocks(Token token, Parser parser, TokenStream stream)
-