public interface Parser
| Modifier and Type | Method and Description |
|---|---|
ExpressionParser |
getExpressionParser() |
TokenStream |
getStream()
Provides the stream of tokens which ultimately need to be "parsed" into
Nodes.
|
RootNode |
parse(TokenStream stream) |
String |
peekBlockStack() |
String |
popBlockStack() |
void |
pushBlockStack(String blockName) |
BodyNode |
subparse() |
BodyNode |
subparse(StoppingCondition stopCondition)
Parses the existing TokenStream, starting at the current Token, and
ending when the stopCondition is fullfilled.
|
RootNode parse(TokenStream stream) throws ParserException
ParserExceptionBodyNode subparse() throws ParserException
ParserExceptionTokenStream getStream()
BodyNode subparse(StoppingCondition stopCondition) throws ParserException
stopCondition - The condition to stop parsing a segment of the template.ParserException - Thrown if a parsing error occurs.ExpressionParser getExpressionParser()
String peekBlockStack()
String popBlockStack()
void pushBlockStack(String blockName)
Copyright © 2015. All rights reserved.