public abstract class BasicHelper extends AbstractHelper
| Modifier and Type | Field and Description |
|---|---|
protected static MustacheTagType[] |
HELPER_TAG_TYPES |
protected static com.google.common.base.Optional<Set<String>> |
NO_SUPPORTED_HASH_KEYS |
configuration| Constructor and Description |
|---|
BasicHelper() |
| Modifier and Type | Method and Description |
|---|---|
protected MustacheTagType[] |
allowedTagTypes() |
protected com.google.common.base.Optional<Set<String>> |
getSupportedHashKeys() |
protected int |
numberOfRequiredHashEntries() |
protected int |
numberOfRequiredParameters() |
void |
validate(HelperDefinition definition)
Helper should validate the tag definition (e.g. number of parameters)
during compilation and fail fast if necessary.
|
append, getHashValue, init, isSection, isUnescapeVariable, isVariablegetConfigurationKeys, checkNotInitialized, initclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfigurationKeys, initprotected static final com.google.common.base.Optional<Set<String>> NO_SUPPORTED_HASH_KEYS
protected static final MustacheTagType[] HELPER_TAG_TYPES
public void validate(HelperDefinition definition)
HelperMustacheException with code
MustacheProblem.COMPILE_HELPER_VALIDATION_FAILURE should be
thrown in case of validation failure occurs.validate in interface Helpervalidate in class AbstractHelperprotected MustacheTagType[] allowedTagTypes()
protected int numberOfRequiredParameters()
protected int numberOfRequiredHashEntries()
Copyright © 2015. All rights reserved.