freemarker.template.compiler
Class Function
java.lang.Object
|
+--freemarker.template.compiler.TemplateObject
|
+--freemarker.template.compiler.TemplateElement
|
+--freemarker.template.compiler.Function
- public class Function
- extends TemplateElement
An element representing a function declaration.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Function
public Function(java.lang.String name,
java.util.List argumentNames,
TemplateElement block)
getArgumentNames
public java.util.List getArgumentNames()
getName
public java.lang.String getName()
process
public void process(TemplateModelRoot modelRoot,
java.io.Writer out)
throws TemplateException,
java.io.IOException
- Description copied from class:
TemplateElement
- Processes the contents of this TemplateElement and
outputs the resulting text to a Writer.
- Overrides:
process
in class TemplateElement
- Following copied from class:
freemarker.template.compiler.TemplateElement
- Parameters:
modelRoot
- the root node of the data model.out
- a Writer to send the output to.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object