Package freemarker.template
Interface LazilyEvaluatableArguments
-
- All Superinterfaces:
TemplateMethodModel,TemplateModel
public interface LazilyEvaluatableArguments extends TemplateMethodModel
A marker interface that tells the FreeMarker that the method arguments can be lazily evaluated. Method models implementing this interface declare that their arguments needn't be evaluated before the method is invoked, but that each argument should be evaluated only when it is first retrieved from the argument list by the model. While this interface extendsTemplateMethodModelto reinforce the notion that it is to be applied to method models, it can naturally be implemented by classes that implementTemplateMethodModelEx. Note that for the time being, there is a limitation in the FreeMarker implementation that prevents lazy evaluation of arguments of method models that have aParametersannotation on them. If your class implementingLazilyEvaluatableArgumentsalso has aParametersannotation, its arguments will be eagerly evaluated. This limitation may be lifted in a future version of FreeMarker.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface freemarker.template.TemplateModel
TemplateModel.InvalidExpressionModel, TemplateModel.JavaNull
-
-
Field Summary
-
Fields inherited from interface freemarker.template.TemplateModel
INVALID_EXPRESSION, JAVA_NULL, NOTHING
-
-
Method Summary
-
Methods inherited from interface freemarker.template.TemplateMethodModel
exec
-
-