freemarker.ext.beans2
Class StaticMethodWrapper
java.lang.Object
freemarker.ext.beans2.StaticMethodWrapper
- All Implemented Interfaces:
- TemplateMethodModel2, TemplateModel
public class StaticMethodWrapper
- extends java.lang.Object
- implements TemplateMethodModel2
- Since:
- 1.9
- Version:
- $Id: StaticMethodWrapper.java 1154 2005-10-09 09:22:01Z run2000 $
- Author:
- Nicholas Cull
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
emptyParamValues
protected static final java.lang.Object[] emptyParamValues
emptyConverters
protected static final Converter[] emptyConverters
emptyModelArguments
protected static final TemplateModel[] emptyModelArguments
clazz
protected java.lang.Class clazz
identifier
protected java.lang.String identifier
StaticMethodWrapper
public StaticMethodWrapper()
StaticMethodWrapper
public StaticMethodWrapper(java.lang.Class clazz,
java.lang.String identifier)
setClazz
public void setClazz(java.lang.Class clazz)
getClazz
public java.lang.Class getClazz()
setIdentifier
public void setIdentifier(java.lang.String identifier)
getIdentifier
public java.lang.String getIdentifier()
isEmpty
public boolean isEmpty()
throws TemplateModelException
- Description copied from interface:
TemplateModel
- Is the object empty?
- Specified by:
isEmpty
in interface TemplateModel
- Returns:
true
if this object is empty, otherwise false
- Throws:
TemplateModelException
exec
public TemplateModel exec(java.util.List<TemplateModel> arguments)
throws TemplateModelException
- Description copied from interface:
TemplateMethodModel2
- Executes a method call. Arguments are passed as a
List
of
TemplateModel
objects.
- Specified by:
exec
in interface TemplateMethodModel2
- Parameters:
arguments
- a List
of TemplateModel
objects
containing the values of the arguments passed to the method.
- Returns:
- the
TemplateModel
produced by the method, or null
.
- Throws:
TemplateModelException