Class MustacheParser

java.lang.Object
org.pipservices3.expressions.mustache.parsers.MustacheParser

public class MustacheParser extends Object
  • Constructor Details

  • Method Details

    • getTemplate

      public String getTemplate()
      The mustache template.
    • setTemplate

      public void setTemplate(String value) throws Exception
      The mustache template.
      Throws:
      Exception
    • getOriginalTokens

      public List<Token> getOriginalTokens()
    • setOriginalTokens

      public void setOriginalTokens(List<Token> value) throws MustacheException
      Throws:
      MustacheException
    • 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
    • parseTokens

      public void parseTokens(List<Token> tokens) throws MustacheException
      Throws:
      MustacheException
    • clear

      public void clear()
      Clears parsing results.