public final class FunctionAdapters extends Object
SoyFunction implementations
(SoyJavaRuntimeFunction
and com.google.template.soy.tofu.restricted.SoyTofuFunction) to the canonical
implementation (SoyJavaFunction).
TODO(user): migrate the legacy impls and remove this class.
| Constructor and Description |
|---|
FunctionAdapters() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends SoyPrintDirective> |
buildSpecificSoyDirectivesMap(Set<SoyPrintDirective> soyDirectivesSet,
Class<T> specificSoyDirectiveType)
Given the set of all Soy directive implementations and a specific Soy directive type (subtype
of SoyPrintDirective) to look for, finds the Soy directives that implement the specific type
and returns them in the form of a map from directive name to directive.
|
public static <T extends SoyPrintDirective> com.google.common.collect.ImmutableMap<String,T> buildSpecificSoyDirectivesMap(Set<SoyPrintDirective> soyDirectivesSet, Class<T> specificSoyDirectiveType)
T - The specific Soy directive type to look for.soyDirectivesSet - The set of all Soy directives.specificSoyDirectiveType - The class of the specific Soy directive type to look for.