Package | Description |
---|---|
freemarker.cache |
Contains classes and interfaces that deal with template loading and caching.
|
freemarker.core |
This package contains FreeMarker's core parsing/rendering functionality;
most casual users do not need to be aware of the classes in this package,
and can restrict their attention to the
freemarker.template
package. |
freemarker.ext.servlet |
Provides a generic purpose servlet that generates dynamic response using
FreeMarker.
|
freemarker.template |
This package contains the core API's that most users will use.
|
freemarker.template.utility |
Utility classes that may be used to customize aspects of FreeMarker.
|
Modifier and Type | Method and Description |
---|---|
static String |
TemplateCache.getFullTemplatePath(Environment env,
String parentTemplateDir,
String templateNameString) |
Modifier and Type | Method and Description |
---|---|
static Environment |
Environment.getCurrentEnvironment()
Retrieves the environment object associated with the current
thread.
|
protected Environment |
Configurable.getEnvironment() |
Modifier and Type | Method and Description |
---|---|
void |
TextBlock.accept(Environment env)
Simply outputs the text.
|
protected void |
DebugBreak.accept(Environment env) |
protected void |
Configurable.doAutoImportsAndIncludes(Environment env) |
TemplateModel |
Expression.getAsTemplateModel(Environment env) |
Class |
OptInTemplateClassResolver.resolve(String className,
Environment env,
Template template) |
Class |
TemplateClassResolver.resolve(String className,
Environment env,
Template template)
Gets a
Class based on the class name. |
Constructor and Description |
---|
InvalidReferenceException(Environment env) |
InvalidReferenceException(String description,
Environment env) |
NonBooleanException(Environment env) |
NonBooleanException(String description,
Environment env) |
NonDateException(Environment env) |
NonDateException(String description,
Environment env) |
NonNumericalException(Environment env) |
NonNumericalException(String description,
Environment env) |
NonStringException(Environment env) |
NonStringException(String description,
Environment env) |
Modifier and Type | Method and Description |
---|---|
void |
IncludePage.execute(Environment env,
Map params,
TemplateModel[] loopVars,
TemplateDirectiveBody body) |
Modifier and Type | Method and Description |
---|---|
Environment |
Template.createProcessingEnvironment(Object rootMap,
Writer out)
Same as
createProcessingEnvironment(rootMap, out, null) . |
Environment |
Template.createProcessingEnvironment(Object rootMap,
Writer out,
ObjectWrapper wrapper)
Creates a
Environment object,
using this template, the data model provided as the root map object, and
the supplied object wrapper to convert map elements to template models. |
Environment |
TemplateException.getEnvironment() |
Modifier and Type | Method and Description |
---|---|
protected void |
Configuration.doAutoImportsAndIncludes(Environment env) |
void |
TemplateDirectiveModel.execute(Environment env,
Map params,
TemplateModel[] loopVars,
TemplateDirectiveBody body)
Executes this user-defined directive; called by FreeMarker when the user-defined
directive is called in the template.
|
void |
TemplateExceptionHandler.handleTemplateException(TemplateException te,
Environment env,
Writer out)
handle the exception.
|
Constructor and Description |
---|
TemplateException(Environment env)
Constructs a TemplateException with no specified detail message
or underlying cause.
|
TemplateException(Exception cause,
Environment env)
Constructs a TemplateException with the given underlying Exception,
but no detail message.
|
TemplateException(String description,
Environment env)
Constructs a TemplateException with the given detail message,
but no underlying cause exception.
|
TemplateException(String description,
Exception cause,
Environment env)
Constructs a TemplateException with both a description of the error
that occurred and the underlying Exception that caused this exception
to be raised.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
StringUtil.matchesName(String qname,
String nodeName,
String nsURI,
Environment env) |