public class SetHelper extends BasicSectionHelper
WithHelper
except the current
HelperDefinition.getHash()
map is pushed on the context stack.
{{#set foo="hello"}} {{foo}} {{/set}}
{{#set foo="Hello" myName=person.name}} {{foo}} {{myName}}! {{/set}}
SECTION_TYPES
HELPER_TAG_TYPES
configuration
Constructor and Description |
---|
SetHelper() |
Modifier and Type | Method and Description |
---|---|
void |
execute(Options options)
Execute the helper.
|
protected Set<String> |
getSupportedHashKeys() |
protected int |
numberOfRequiredHashEntries() |
protected int |
numberOfRequiredParameters() |
allowedTagTypes
getRequiredHashKeys, validate
append, convertAndAppend, convertValue, init, isSection, isUnescapeVariable, isVariable
checkNotInitialized, init
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfigurationKeys, init
public void execute(Options options)
Helper
protected int numberOfRequiredParameters()
numberOfRequiredParameters
in class BasicHelper
protected int numberOfRequiredHashEntries()
numberOfRequiredHashEntries
in class BasicHelper
protected Set<String> getSupportedHashKeys()
getSupportedHashKeys
in class BasicHelper
*
to
allow any hash keysCopyright © 2017. All rights reserved.