Package com.github.mustachejava
Class MustacheParser
java.lang.Object
com.github.mustachejava.MustacheParser
The parser generates callbacks into the MustacheFactory to build them. Do not use these
directly as you must manage the Mustache object lifecycle as well.
User: sam Date: 5/14/11 Time: 3:52 PM
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanstatic final Stringstatic final Stringprivate final MustacheFactoryprivate final boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedMustacheParser(MustacheFactory mf, boolean specConformWhitespace) -
Method Summary
Modifier and TypeMethodDescriptionprotected Mustachecompile(Reader reader, String tag, AtomicInteger currentLine, String file, String sm, String em, boolean startOfLine) voidsetAllowChangingDelimeters(boolean allowChangingDelimeters) private StringBuilderwrite(MustacheVisitor mv, StringBuilder out, String file, int line, boolean startOfLine) Ignore empty strings and append to the previous code if it was also a write.
-
Field Details
-
DEFAULT_SM
- See Also:
-
DEFAULT_EM
- See Also:
-
specConformWhitespace
private final boolean specConformWhitespace -
mf
-
allowChangingDelimeters
private boolean allowChangingDelimeters
-
-
Constructor Details
-
MustacheParser
-
MustacheParser
-
-
Method Details
-
compile
-
compile
-
compile
-
compile
-
compile
protected Mustache compile(Reader reader, String tag, AtomicInteger currentLine, String file, String sm, String em, boolean startOfLine) throws MustacheException - Throws:
MustacheException
-
write
private StringBuilder write(MustacheVisitor mv, StringBuilder out, String file, int line, boolean startOfLine) Ignore empty strings and append to the previous code if it was also a write. -
setAllowChangingDelimeters
public void setAllowChangingDelimeters(boolean allowChangingDelimeters)
-