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 String
The source name of the template found (seeTemplate.getSourceName()
), ornull
ifisPositive()
isfalse
.abstract boolean
Tells if the lookup has found a matching template.
-
Method Details
-
getTemplateSourceName
The source name of the template found (seeTemplate.getSourceName()
), ornull
ifisPositive()
isfalse
. -
isPositive
public abstract boolean isPositive()Tells if the lookup has found a matching template.
-