| Package | Description |
|---|---|
| com.mitchellbosecke.pebble.lexer | |
| com.mitchellbosecke.pebble.parser | |
| com.mitchellbosecke.pebble.tokenParser |
| Modifier and Type | Method and Description |
|---|---|
Token |
TokenStream.expect(Token.Type type)
Checks the current token to see if it matches the provided type.
|
Token |
TokenStream.expect(Token.Type type,
String value)
Checks the current token to see if it matches the provided type.
|
TokenStream |
LexerImpl.tokenize(Reader reader,
String name)
This is the main method used to tokenize the raw contents of a template.
|
TokenStream |
Lexer.tokenize(Reader templateReader,
String name) |
| Modifier and Type | Method and Description |
|---|---|
RootNode |
Parser.parse(TokenStream stream) |
RootNode |
ParserImpl.parse(TokenStream stream) |
ArgumentsNode |
ExpressionParser.parseArguments() |
ArgumentsNode |
ExpressionParser.parseArguments(boolean isMacroDefinition) |
Expression<?> |
ExpressionParser.parseExpression()
The public entry point for parsing an expression.
|
FilterInvocationExpression |
ExpressionParser.parseFilterInvocationExpression() |
String |
ExpressionParser.parseNewVariableName()
Parses a new variable that will need to be initialized in the Java code.
|
BodyNode |
Parser.subparse() |
BodyNode |
ParserImpl.subparse() |
BodyNode |
Parser.subparse(StoppingCondition stopCondition)
Parses the existing TokenStream, starting at the current Token, and
ending when the stopCondition is fullfilled.
|
BodyNode |
ParserImpl.subparse(StoppingCondition stopCondition) |
| Modifier and Type | Method and Description |
|---|---|
RenderableNode |
MacroTokenParser.parse(Token token) |
RenderableNode |
SetTokenParser.parse(Token token) |
RenderableNode |
ParallelTokenParser.parse(Token token) |
RenderableNode |
TokenParser.parse(Token token)
The TokenParser is responsible to convert all the necessary tokens into
appropriate Nodes.
|
RenderableNode |
IfTokenParser.parse(Token token) |
RenderableNode |
ImportTokenParser.parse(Token token) |
RenderableNode |
BlockTokenParser.parse(Token token) |
RenderableNode |
VerbatimTokenParser.parse(Token token) |
RenderableNode |
FlushTokenParser.parse(Token token) |
RenderableNode |
AutoEscapeTokenParser.parse(Token token) |
RenderableNode |
ForTokenParser.parse(Token token) |
RenderableNode |
FilterTokenParser.parse(Token token) |
RenderableNode |
IncludeTokenParser.parse(Token token) |
RenderableNode |
ExtendsTokenParser.parse(Token token) |
Copyright © 2015. All rights reserved.