Fork me on GitHub

Parser

In package com.mitchellbosecke.pebble.parser

public interface interface Parser

Methods

public RootNode parse(TokenStream stream)
Parameters:
public BodyNode subparse()
Parameters:
  • No parameters
public TokenStream getStream()

Provides the stream of tokens which ultimately need to be "parsed" into Nodes.

Parameters:
  • No parameters
public BodyNode subparse(StoppingCondition stopCondition)

Parses the existing TokenStream, starting at the current Token, and ending when the stopCondition is fullfilled.

Parameters:
  • StoppingCondition stopCondition

    The condition to stop parsing a segment of the template.

public ExpressionParser getExpressionParser()
Parameters:
  • No parameters
public String peekBlockStack()
Parameters:
  • No parameters
public String popBlockStack()
Parameters:
  • No parameters
public void pushBlockStack(String blockName)
Parameters:
  • String blockName