Interface Parser

  • All Known Implementing Classes:
    ParserImpl

    public interface Parser
    • Method Detail

      • getStream

        TokenStream getStream()
        Provides the stream of tokens which ultimately need to be "parsed" into Nodes.
        Returns:
        TokenStream
      • subparse

        BodyNode subparse​(StoppingCondition stopCondition)
        Parses the existing TokenStream, starting at the current Token, and ending when the stopCondition is fullfilled.
        Parameters:
        stopCondition - The condition to stop parsing a segment of the template.
        Returns:
        A node representing the parsed section
      • peekBlockStack

        java.lang.String peekBlockStack()
      • popBlockStack

        java.lang.String popBlockStack()
      • pushBlockStack

        void pushBlockStack​(java.lang.String blockName)