|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FunctionTemplateProcessor
Adds the ability to retrieve Template functions from a TemplateProcessor. Used by IncludeInstruction to retrieve a list of callable Functions.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface freemarker.template.TemplateProcessor |
---|
TemplateProcessor.ExitStatus |
Method Summary | |
---|---|
void |
addFunction(java.lang.String name,
TemplateFunctionModel function)
Adds a function to the template. |
TemplateFunctionModel |
getFunction(java.lang.String name)
Retrieves a function from the template. |
java.util.Set<java.lang.String> |
getFunctionNames()
Retrieve a Set of function names for this template. |
Methods inherited from interface freemarker.template.TemplateProcessor |
---|
process |
Method Detail |
---|
TemplateFunctionModel getFunction(java.lang.String name)
CallInstruction
s
and IncludeInstruction
s at run-time.
name
- the name of the function to be retrievedjava.util.Set<java.lang.String> getFunctionNames()
Set
of function names for this template.
Set
of function names (String
objects)
that have been defined for this template.void addFunction(java.lang.String name, TemplateFunctionModel function)
TemplateBuilder
at compile-time.
name
- the name of the function to be storedfunction
- the function to be stored by the template
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |