TemplateModel _eval(Environment env) throws TemplateException
{
TemplateModel targetModel = target.eval(env);
if (targetModel instanceof TemplateMethodModel) {
TemplateMethodModel targetMethod = (TemplateMethodModel)targetModel;
List argumentStrings =
targetMethod instanceof TemplateMethodModelEx
? arguments.getModelList(env)
: arguments.getValueList(env);
Object result = targetMethod.exec(argumentStrings);
return env.getObjectWrapper().wrap(result);
}
else if (targetModel instanceof Macro) {
Macro func = (Macro) targetModel;
env.setLastReturnValue(null);