public class BeanTemplateParser extends StringTemplateParser
Once set, BeanTemplateParser
instance is reusable
as it doesn't store any parsing state.
Based on StringTemplateParser
.
DEFAULT_MACRO_END, DEFAULT_MACRO_PREFIX, DEFAULT_MACRO_START, escapeChar, macroEnd, macroPrefix, macroStart, missingKeyReplacement, parseValues, replaceMissingKey, resolveEscapes
Constructor and Description |
---|
BeanTemplateParser() |
Modifier and Type | Method and Description |
---|---|
ContextTemplateParser |
of(java.lang.Object context)
Creates bean-backed
MacroResolver . |
java.lang.String |
parseWithBean(java.lang.String template,
java.lang.Object context) |
parse, setEscapeChar, setMacroEnd, setMacroPrefix, setMacroStart, setMissingKeyReplacement, setParseValues, setReplaceMissingKey, setResolveEscapes, setStrictFormat
public ContextTemplateParser of(java.lang.Object context)
MacroResolver
.public java.lang.String parseWithBean(java.lang.String template, java.lang.Object context)
Copyright © 2003-present Jodd Team