Uses of Class
org.klojang.templates.VarGroup
Packages that use VarGroup
-
Uses of VarGroup in org.klojang.templates
Fields in org.klojang.templates declared as VarGroupModifier and TypeFieldDescriptionstatic final VarGroup
VarGroup.ATTR
A predefined variable group corresponding to theattr:
prefix.static final VarGroup
VarGroup.DEF
A predefined variable group corresponding to thedef:
prefix.static final VarGroup
VarGroup.HTML
A predefined variable group corresponding to thehtml:
prefix.static final VarGroup
VarGroup.JS
A predefined variable group corresponding to thejs:
prefix.static final VarGroup
VarGroup.JS_ATTR
A predefined variable group corresponding to thejsattr:
prefix.static final VarGroup
VarGroup.PARAM
A predefined variable group corresponding to theparam:
prefix.static final VarGroup
VarGroup.PATH
A predefined variable group corresponding to thepath:
prefix.static final VarGroup
VarGroup.TEXT
A predefined variable group corresponding to thetext:
prefix.Methods in org.klojang.templates that return VarGroupModifier and TypeMethodDescriptionstatic VarGroup
Returns theVarGroup
with the specified name (which is also the prefix to be used inside a template).Methods in org.klojang.templates that return types with arguments of type VarGroupModifier and TypeMethodDescriptionVariableOccurrence.varGroup()
Returns the value of thevarGroup
record component.Methods in org.klojang.templates with parameters of type VarGroupModifier and TypeMethodDescriptionRenderSession.ifNotSet
(String path, VarGroup varGroup, IntFunction<Object> valueGenerator) Sets the specified variable to the value produced by the specifiedIntFunction
if the variable has not already been set.Populates the template with values from the specified source data object.RenderSession.populate
(String nestedTemplateName, Object data, String separator, VarGroup varGroup, List<String> names) Populates a template nested inside the template being managed by thisRenderSession
.RenderSession.populateDuo
(String nestedTemplateName, String separator, VarGroup varGroup, List<?> values) Convenience method for populating a nested template that contains exactly two variables.RenderSession.populateSolo
(String nestedTemplateName, String separator, VarGroup varGroup, List<?> values) Convenience method for populating a nested template that contains exactly one variable.Sets the specified variable to the specified value.RenderSession.setDelayed
(String varName, VarGroup varGroup, Supplier<Object> valueGenerator) Sets the specified variable to the value produced by the specifiedSupplier
.RenderSession.setPath
(String path, VarGroup varGroup, boolean force, IntFunction<Object> valueGenerator) Sets the value of the specified variable.Constructor parameters in org.klojang.templates with type arguments of type VarGroup