Class MustacheParser


  • public class MustacheParser
    extends Object
    • Method Detail

      • getTemplate

        public String getTemplate()
        The mustache template.
      • getOriginalTokens

        public List<Token> getOriginalTokens()
      • getInitialTokens

        public List<MustacheToken> getInitialTokens()
        The list of original mustache tokens.
      • getResultTokens

        public List<MustacheToken> getResultTokens()
        The list of parsed mustache tokens.
      • getVariableNames

        public List<String> getVariableNames()
        The list of found variable names.
      • parseString

        public void parseString​(String mustache)
                         throws Exception
        Sets a new mustache string and parses it into internal byte code.
        Parameters:
        mustache - A new mustache string.
        Throws:
        Exception
      • clear

        public void clear()
        Clears parsing results.