| java.lang.Object freemarker.core.TemplateObject freemarker.core.Expression freemarker.core.BuiltIn freemarker.core.Interpret
Interpret | class Interpret extends BuiltIn (Code) | | A method that takes a parameter and evaluates it as a scalar,
then treats that scalar as template source code and returns a
transform model that evaluates the template in place.
The template inherits the configuration and environment of the executing
template. By default, its name will be equal to
executingTemplate.getName() + "$anonymous_interpreted". You can
specify another parameter to the method call in which case the
template name suffix is the specified id instead of "anonymous_interpreted".
version: $Id: Interpret.java,v 1.2 2005/06/16 18:13:56 ddekany Exp $ author: Attila Szegedi |
_getAsTemplateModel | TemplateModel _getAsTemplateModel(Environment env) throws TemplateException(Code) | | Constructs a template on-the-fly and returns it embedded in a
TemplateTransformModel .
The built-in has two arguments:
the arguments passed to the method. It can receive at
least one and at most two arguments, both must evaluate to a scalar.
The first scalar is interpreted as a template source code and a template
is built from it. The second (optional) is used to give the generated
template a name.
a TemplateTransformModel that when executed insidea <transform> block will process the generated templatejust as if it had been <transform>-ed at that point. |
Fields inherited from freemarker.core.TemplateObject | int beginColumnbeginLineendColumnendLine(Code)(Java Doc)
|
Methods inherited from freemarker.core.TemplateObject | static void assertNonNull(TemplateModel model, Expression exp, Environment env) throws InvalidReferenceException(Code)(Java Doc) public boolean contains(int column, int line)(Code)(Java Doc) TemplateObject copyLocationFrom(TemplateObject from)(Code)(Java Doc) final public int getBeginColumn()(Code)(Java Doc) final public int getBeginLine()(Code)(Java Doc) abstract public String getCanonicalForm()(Code)(Java Doc) final public int getEndColumn()(Code)(Java Doc) final public int getEndLine()(Code)(Java Doc) public String getEndLocation()(Code)(Java Doc) final public String getSource()(Code)(Java Doc) public String getStartLocation()(Code)(Java Doc) public Template getTemplate()(Code)(Java Doc) static TemplateException invalidTypeException(TemplateModel model, Expression exp, Environment env, String expected) throws TemplateException(Code)(Java Doc) final void setLocation(Template template, Token begin, Token end) throws ParseException(Code)(Java Doc) final void setLocation(Template template, Token begin, TemplateObject end) throws ParseException(Code)(Java Doc) final void setLocation(Template template, TemplateObject begin, Token end) throws ParseException(Code)(Java Doc) final void setLocation(Template template, TemplateObject begin, TemplateObject end) throws ParseException(Code)(Java Doc) void setLocation(Template template, int beginColumn, int beginLine, int endColumn, int endLine) throws ParseException(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|