public final class CompiledTemplates extends Object
| Constructor and Description |
|---|
CompiledTemplates(com.google.common.collect.ImmutableSet<String> delTemplateNames) |
CompiledTemplates(com.google.common.collect.ImmutableSet<String> delTemplateNames,
ClassLoader loader) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.base.Optional<SanitizedContent.ContentKind> |
getTemplateContentKind(String name)
Returns the strict content type of the template.
|
CompiledTemplate.Factory |
getTemplateFactory(String name)
Returns a factory for the given fully qualified template name.
|
com.google.common.collect.ImmutableSortedSet<String> |
getTransitiveIjParamsForTemplate(String templateName)
Returns the transitive closure of all the injected params that might be used by this template.
|
void |
loadAll(Iterable<String> templateNames)
Eagerly load all the given templates.
|
public CompiledTemplates(com.google.common.collect.ImmutableSet<String> delTemplateNames)
public CompiledTemplates(com.google.common.collect.ImmutableSet<String> delTemplateNames, ClassLoader loader)
delTemplateNames - The names of all the compiled deltemplates (the mangled names). This is
needed to construct a valid deltemplate selector.loader - The classloader that contains the classespublic com.google.common.base.Optional<SanitizedContent.ContentKind> getTemplateContentKind(String name)
public CompiledTemplate.Factory getTemplateFactory(String name)