Package | Description |
---|---|
freemarker.core |
The seldom used or advanced parts of the fundamental FreeMarker API, compared to
freemarker.template . |
freemarker.ext.beans |
The default object wrapper of FreeMarker uses
this to expose Java Beans and POJO-s to templates.
|
freemarker.ext.jython |
Exposes Jython objects to templates.
|
freemarker.ext.rhino |
Exposes Rhino (ECMAScript) objects to templates.
|
freemarker.template |
The fundamental, most commonly used API-s of FreeMarker;
start with
Configuration (see also the
Getting Started in the Manual.) |
freemarker.template.utility |
Various classes used by core FreeMarker code but might be useful outside of it too.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
TemplateNumberFormat.format(TemplateNumberModel numberModel)
Formats the model to markup instead of to plain text if the result markup will be more than just plain text
escaped, otherwise falls back to formatting to plain text.
|
abstract java.lang.String |
TemplateNumberFormat.formatToPlainText(TemplateNumberModel numberModel) |
static java.lang.Number |
TemplateFormatUtil.getNonNullNumber(TemplateNumberModel numberModel)
Utility method to extract the
Number from an TemplateNumberModel , and throws
TemplateModelException with a standard error message if that's null . |
Modifier and Type | Class and Description |
---|---|
class |
NumberModel
Wraps arbitrary subclass of
Number into a reflective model. |
Modifier and Type | Class and Description |
---|---|
class |
JythonNumberModel
Model for Jython numeric objects (
PyInteger , PyLong ,
PyFloat ). |
Modifier and Type | Class and Description |
---|---|
class |
RhinoFunctionModel |
class |
RhinoScriptableModel |
Modifier and Type | Class and Description |
---|---|
class |
SimpleNumber
A simple implementation of the TemplateNumberModel
interface.
|
Modifier and Type | Field and Description |
---|---|
static TemplateNumberModel |
Constants.MINUS_ONE |
static TemplateNumberModel |
Constants.ONE |
static TemplateNumberModel |
Constants.ZERO |