Class MustacheParser
java.lang.Object
org.pipservices3.expressions.mustache.parsers.MustacheParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears parsing results.The list of original mustache tokens.The list of parsed mustache tokens.The mustache template.The list of found variable names.void
parseString
(String mustache) Sets a new mustache string and parses it into internal byte code.void
parseTokens
(List<Token> tokens) void
setOriginalTokens
(List<Token> value) void
setTemplate
(String value) The mustache template.
-
Constructor Details
-
MustacheParser
- Throws:
Exception
-
-
Method Details
-
getTemplate
The mustache template. -
setTemplate
The mustache template.- Throws:
Exception
-
getOriginalTokens
-
setOriginalTokens
- Throws:
MustacheException
-
getInitialTokens
The list of original mustache tokens. -
getResultTokens
The list of parsed mustache tokens. -
getVariableNames
The list of found variable names. -
parseString
Sets a new mustache string and parses it into internal byte code.- Parameters:
mustache
- A new mustache string.- Throws:
Exception
-
parseTokens
- Throws:
MustacheException
-
clear
public void clear()Clears parsing results.
-