public interface TemplateMethodModelEx extends TemplateMethodModel
TemplateMethodModel
that acts on models, rather
than on strings. TemplateMethodModel
interface will receive string
representations of its argument expressions, while this interface receives
the models themselves. The interface has no new methods. Instead, by
implementing this interface the class declares that it wishes to receive
actual TemplateModel instances in its arguments list when invoked instead of
their string representations. Further, if the implementation wishes to
operate on POJOs that might be underlying the models, it can use the static
utility methods in the DeepUnwrap
class to easily obtain them.NOTHING
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
exec(java.util.List arguments)
Executes a method call.
|
java.lang.Object exec(java.util.List arguments) throws TemplateModelException
exec
in interface TemplateMethodModel
arguments
- a List of TemplateModel
objects
containing the values of the arguments passed to the method. If the
implementation wishes to operate on POJOs that might be underlying the
models, it can use the static utility methods in the DeepUnwrap
class to easily obtain them.TemplateModel
, it will be automatically
wrapped using the environment
object wrapper
.TemplateModelException