|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object freemarker.template.expression.LambdaMethod
public final class LambdaMethod
Implements an instance of a lambda expression.
Constructor Summary | |
---|---|
LambdaMethod(Expression expression,
TemplateWriteableHashModel model,
java.util.List<Identifier> paramNames)
Construct a new Lambda method given an expression to evaluate, a template model for context evaluation, and a list of parameters to be resolved when this method is called. |
Method Summary | |
---|---|
TemplateModel |
exec(java.util.List<TemplateModel> arguments)
Executes a lambda method call. |
boolean |
isEmpty()
Is the object empty? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LambdaMethod(Expression expression, TemplateWriteableHashModel model, java.util.List<Identifier> paramNames)
expression
- the expression to be evaluatedmodel
- the template model to be used as context for free variablesparamNames
- names of parameters to be passed into the methodMethod Detail |
---|
public boolean isEmpty() throws TemplateModelException
isEmpty
in interface TemplateModel
true
if this object is empty, otherwise false
TemplateModelException
public TemplateModel exec(java.util.List<TemplateModel> arguments) throws TemplateModelException
List
of
TemplateModel
objects.
exec
in interface TemplateMethodModel2
arguments
- a List
of TemplateModel
objects
containing the values of the arguments passed to the method.
TemplateModel
produced by the method, or null
.
TemplateModelException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |