Package freemarker.cache
Class TemplateLookupResult
java.lang.Object
freemarker.cache.TemplateLookupResult
The return value of
TemplateLookupStrategy.lookup(TemplateLookupContext) and similar lookup methods. You
usually get one from TemplateLookupContext.lookupWithAcquisitionStrategy(String) or
TemplateLookupContext.createNegativeLookupResult(); you can't create instances of this directly.- Since:
- 2.3.22
-
Method Summary
Modifier and TypeMethodDescriptionabstract StringThe source name of the template found (seeTemplate.getSourceName()), ornullifisPositive()isfalse.abstract booleanTells if the lookup has found a matching template.
-
Method Details
-
getTemplateSourceName
The source name of the template found (seeTemplate.getSourceName()), ornullifisPositive()isfalse. -
isPositive
public abstract boolean isPositive()Tells if the lookup has found a matching template.
-