public abstract class BasicHelper extends AbstractHelper
Modifier and Type | Field and Description |
---|---|
protected static MustacheTagType[] |
HELPER_TAG_TYPES |
configuration
Constructor and Description |
---|
BasicHelper() |
Modifier and Type | Method and Description |
---|---|
protected MustacheTagType[] |
allowedTagTypes() |
protected Set<String> |
getRequiredHashKeys() |
protected 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, convertAndAppend, convertValue, init, isSection, isUnescapeVariable, isVariable
checkNotInitialized, init
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfigurationKeys, init
protected static final MustacheTagType[] HELPER_TAG_TYPES
public void validate(HelperDefinition definition)
Helper
MustacheException
with code
MustacheProblem.COMPILE_HELPER_VALIDATION_FAILURE
should be
thrown in case of validation failure occurs.protected MustacheTagType[] allowedTagTypes()
protected int numberOfRequiredParameters()
protected int numberOfRequiredHashEntries()
Copyright © 2017. All rights reserved.