Package freemarker.cache
Class TemplateLookupResult
- java.lang.Object
-
- freemarker.cache.TemplateLookupResult
-
public abstract class TemplateLookupResult extends java.lang.Object
The return value ofTemplateLookupStrategy.lookup(TemplateLookupContext)
and similar lookup methods. You usually get one fromTemplateLookupContext.lookupWithAcquisitionStrategy(String)
orTemplateLookupContext.createNegativeLookupResult()
; you can't create instances of this directly.- Since:
- 2.3.22
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract java.lang.String
getTemplateSourceName()
The source name of the template found (seeTemplate.getSourceName()
), ornull
ifisPositive()
isfalse
.abstract boolean
isPositive()
Tells if the lookup has found a matching template.
-
-
-
Method Detail
-
getTemplateSourceName
public abstract java.lang.String 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.
-
-