Package freemarker.cache
Class TemplateLookupResult
- java.lang.Object
-
- freemarker.cache.TemplateLookupResult
-
public abstract class TemplateLookupResult extends java.lang.ObjectThe 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.StringgetTemplateSourceName()The source name of the template found (seeTemplate.getSourceName()), ornullifisPositive()isfalse.abstract booleanisPositive()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()), ornullifisPositive()isfalse.
-
isPositive
public abstract boolean isPositive()
Tells if the lookup has found a matching template.
-
-