public abstract class AbstractHelper extends AbstractConfigurationAware implements Helper
| Constructor and Description |
|---|
AbstractHelper() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
append(Options options,
java.lang.CharSequence sequence)
Escape appended sequence if needed.
|
protected java.lang.Object |
getHashValue(Options options,
java.lang.String key) |
void |
init(Configuration configuration)
Initialize the component.
|
protected boolean |
isSection(Options options) |
protected boolean |
isUnescapeVariable(Options options) |
protected boolean |
isVariable(Options options) |
void |
validate(HelperDefinition definition)
Helper should validate the tag definition (e.g. number of parameters)
during compilation and fail fast if necessary.
|
getConfigurationKeys, checkNotInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfigurationKeyspublic void validate(HelperDefinition definition)
HelperMustacheException with code
MustacheProblem.COMPILE_HELPER_VALIDATION_FAILURE should be
thrown in case of validation failure occurs.public void init(Configuration configuration)
ConfigurationAwareConfigurationAware components e.g. (
LocaleSupport).
This method must not be called directly by the application.init in interface ConfigurationAwareinit in class AbstractConfigurationAwareprotected java.lang.Object getHashValue(Options options, java.lang.String key)
protected boolean isSection(Options options)
protected boolean isVariable(Options options)
protected boolean isUnescapeVariable(Options options)
protected void append(Options options, java.lang.CharSequence sequence)
options - sequence - TextSupportCopyright © 2014. All Rights Reserved.