public interface TokenParser
| Modifier and Type | Method and Description |
|---|---|
String |
getTag()
The "tag" is used to determine when to use a particular instance of a
TokenParser.
|
RenderableNode |
parse(Token token)
The TokenParser is responsible to convert all the necessary tokens into
appropriate Nodes.
|
void |
setParser(Parser parser)
Each TokenParser instance will have access to the primary Pebble Parser
before the parse(Token token) method is invoked.
|
String getTag()
void setParser(Parser parser)
parser - The desired parserRenderableNode parse(Token token) throws ParserException
token - The token to parseParserException - Thrown if an error occurs while parsing the tokenCopyright © 2015. All rights reserved.