Cache storage abstracts away the storage aspects of a cache - associating
an object with a key, retrieval and removal via the key.
Can be used by subclasses to canonicalize URL path prefixes.
A transform that captures the output of a block of FTL code and stores that in a variable.
Removes the line-break from the end of the string.
A
TemplateLoader
that uses streams reachable through
Class.getResourceAsStream(String)
as its source of templates.
Creates a template loader that will use the Class.getResource(String)
method of its own class to load the resources, and "/"
as base path.
Creates a template loader that will use the Class.getResource(String)
method of the specified class to load the resources, and ""
as base
path.
Creates a template loader that will use the Class.getResource(String)
method
of the specified class to load the resources, and the specified base path (absolute or relative).
Removes all mappings from this map.
Clears language-to-encoding map.
Removes all shared variables, except the predefined ones (compress, html_escape, etc.).
Removes all entries from the template cache, thus forcing reloading of templates
on subsequent getTemplate
calls.
Returns a shallow copy of this IdentityHashMap instance: the keys and
values themselves are not cloned.
Closes the template source.
Closes the template source.
Closes the template source.
Closes the template source.
Closes the template source.
Closes the template source.
Converts any BigDecimal
s in the passed array to the type of
the corresponding formal argument of the method.
Converts any BigDecimal
s in the passed array to the type of
the corresponding formal argument of the method.
Add sequence capabilities to an existing collection, or
vice versa.
Creates a new model that wraps the specified collection object.
Implementation of missing JDK 1.3 collection features for JDK 1.2
FreeMarker command-line utility, the Main-Class of freemarker.jar.
A template element where the content is ignored, a Comment.
An optional interface for cache storage that knows whether it can be
concurrently accessible without synchronization.
Main entry point into the FreeMarker API, this class encapsulates the
various configuration parameters with which FreeMarker is run, as well
as serves as a central template loading and caching point.
Arithmetic engine that uses (more-or-less) the widening conversions of
Java language to determine the type of result of operation, instead of
converting everything to BigDecimal up front.
An arithmetic engine that conservatively widens the operation arguments
to extent that they can hold the result of the operation.
Returns true if this map contains a mapping for the specified
key.
Returns true if this map maps one or more keys to the
specified value.
Converts an array to a java.util.List
This method is invoked when
get()
is invoked without
set(Object)
being invoked before it to define the value in the
current scope.
Create a wrapping model for the specified object that belongs to
the specified wrapper.
This method is called from
init()
to create the
FreeMarker configuration object that this servlet will use
for template loading.
Create an FM expression parser using a string.
This method is called from
init()
to create the
FreeMarker object wrapper object that this servlet will use
for adapting request, session, and servlet context attributes into
template models..
Same as createProcessingEnvironment(rootMap, out, null)
.
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.
Create the template loader.
This is the last token that has been consumed successfully.
A class that allows one to associate custom data with a configuration,
a template, or environment.
Creates a new custom attribute with the specified scope
A constant value to use as the empty string.
Constant returned from
afterBody()
that tells the
template engine to end the transform and close the writer.
Returns a collection view of the mappings contained in this map.
Creates a new model that wraps the specified enumeration object.
Object that represents the runtime environment during template processing.
Called whenever an environment gets suspended (ie hits a breakpoint).
Called whenever an environment gets suspended (ie hits a breakpoint).
Event describing a suspension of an environment (ie because it hit a
breakpoint).
The end of line string for this machine.
Logs an error message with accompanying throwable.
Constant returned from
onStart()
that tells the
template engine to evaluate the body.
An instance of this class should be registered as a <listener> in
the web.xml descriptor in order to correctly dispatch events to
event listeners that are specified in TLD files.
A template that always throws an exception whenever we call getAsString()
The first argument is used as a key to call the map's get method.
Applies an XPath expression to the node list and returns the resulting node list.
Evaluates an XPath expression on XML nodes in this model.
Takes first argument as a resource key, looks up a string in resource bundle
with this key, then applies a MessageFormat.format on the string with the
rest of the arguments.
Invokes the method, passing it the arguments from the list.
Gives FreeMarker the the ability to execute external commands.
Executes this user-defined directive; called by FreeMarker when the user-defined
directive is called in the template.
Each entry in this array is an array of integers.
At this level of exposure, all methods and properties of the
wrapped objects are exposed to the template.
At this level of exposure, no bean properties and methods are exposed.
At this level of exposure, only property getters are exposed.
At this level of exposure, all methods and properties of the wrapped
objects are exposed to the template except methods that are deemed
not safe.
An abstract class for nodes in the parse tree
that represent a FreeMarker expression.
This is the same as OrExpression, since
the OR is the operator with the lowest
precedence.
A singleton object to represent boolean false
A
TemplateLoader
that uses files in a specified directory as the
source of templates.
Creates a new file template cache that will use the current directory
(the value of the system property user.dir
as the base
directory for loading templates.
Creates a new file template loader that will use the specified directory
as the base directory for loading templates.
Creates a new file template loader that will use the specified directory
as the base directory for loading templates.
Finds the object that acts as the source of the template with the
given name.
Finds the object that acts as the source of the template with the
given name.
Finds the object that acts as the source of the template with the
given name.
Finds the object that acts as the source of the template with the
given name.
Finds the object that acts as the source of the template with the
given name.
Finds the object that acts as the source of the template with the
given name.
This class is generated by JavaCC from a grammar file.
Constructor with generated Token Manager.
Constructs a new parser object.
Constructor with InputStream.
Constructor with InputStream and supplied encoding
Provides direct access to caching format engine from code (instead of from script).
Similar to Class.forName(java.lang.String)
, but attempts to load
through the thread context class loader.
Contains classes and interfaces that deal with template loading and caching.
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.
An
ant task that can be used
to invoke the FreeMarker engine to generate documentation.
Provides model implementations that allow access to arbitrary Java objects.
Provides adapter for
JDOM
including support for writing XML fragments, listing nodes,
traversal, copying, and filtering, and a full
XPath support.
Classes for two-way FreeMarker-JSP integration.
Provides model implementations that allow access to arbitrary
Jython objects.
Rhino (ECMAScript) support
Provides a generic purpose servlet that generates dynamic response using
FreeMarker.
Provides data model adapter for DOM, dom4j and JDOM; three widely used XML
document object models.
Provides the FreeMarker logging facility.
This package contains the core API's that most users will use.
Utility classes that may be used to customize aspects of FreeMarker.
Test cases for various aspects of the FreeMarker implementation.
A production for FreeMarker directives.
This is a general-purpose FreeMarker view servlet.
Simple implementation of JSP tag to allow use of FreeMarker templates in
JSP.
A production freemarker text that may contain
${...} and #{...} but no directives.
This is an
Ant task for transforming
XML documents using FreeMarker templates.
Constructor creates the SAXBuilder.
FTL string literal decoding.
Retrieves the i-th template model in this sequence.
Retrieves the i-th object from the collection, wrapped as a TemplateModel.
Returns PyObject.__finditem__(int)
.
Retrieves the i-th element of the node list.
Selects a single node from this model's nodelist by its list index and
returns a new NodeListModel containing that single node.
Retrieves the i-th template model in this sequence.
Retrieves the i-th template model in this sequence.
Returns the value to which this map maps the specified key.
Uses Beans introspection to locate a property or method with name
matching the key name.
Gets a TemplateModel from the hash.
Gets a TemplateModel from the hash.
Calls PyObject.__findattr__(java.lang.String)
, then if it
returns null calls PyObject.__finditem__(java.lang.String)
.
Gets a TemplateModel from the hash.
Gets a TemplateModel from the hash.
Gets a TemplateModel from the hash.
Gets a TemplateModel from the hash.
Provides node list traversal as well as special functions: filtering by name,
filtering by node type, shallow-copying, and duplicate removal.
Returns a new NodeListModel containing the nodes that result from applying
an operator to this model's nodes.
Gets a TemplateModel from the hash.
Retrieves a JSP tag library identified by an URI.
Gets a TemplateModel from the hash.
Gets a TemplateModel from the hash.
Retrieves the underlying object, or some other object semantically
equivalent to its value narrowed by the class hint.
Retrieves the underlying object, or some other object semantically
equivalent to its value narrowed by the class hint.
Retrieves the underlying object, or some other object semantically
equivalent to its value narrowed by the class hint.
Retrieves the arithmetic engine used to perform arithmetic operations.
Returns Enumeration.hasMoreElements()
.
Returns Iterator.hasNext()
.
Returns the value of PyObject.__nonzero__()
.
Returns either PyObject.__tojava__(java.lang.Class)
with
java.lang.Number
.class as argument.
Returns the numeric value.
Returns the scalar's value as a String.
Returns the value of Object.toString()
.
Returns the string representation of this model.
Returns the scalar's value as a String.
Returns the scalar's value as a String.
Returns the scalar's value as a String.
Returns the string representation of this model.
This method returns the string resulting from concatenation
of string representations of its nodes.
Returns the string representation of the wrapped nodes.
Returns the string representation of this model.
Returns the string representation of this model.
Returns the result of calling Object.toString()
on the wrapped
object.
Returns the string representation of this model.
Returns the scalar's value as a String.
Get token beginning column number.
Get token beginning line number.
Retrieves a list of all
Breakpoint
objects for the specified
template.
Returns the same exception as getCauseException
.
Returns the underlying exception that caused this exception to be
generated.
Returns the NumberFormat
used for the c built-in.
Returns the Configuration object associated with this template.
Retrieves the environment object associated with the current
thread.
Returns the main name-space.
Retrieves a named custom attribute for this configurable.
Returns an array with names of all custom attributes defined directly
on this configurable.
Returns the date format used to convert date models representing
date-only dates to strings.
Returns the date format used to convert date models representing datetime
dates to strings.
Returns the type of the date.
Connects to the FreeMarker debugger service running on a specific host
and port.
Returns the default (singleton) Configuration object.
Returns the default date type.
Gets the default encoding for converting bytes to characters when
reading template files in a locale for which no explicit encoding
was specified.
Returns the default instance of the wrapper.
Returns the default object wrapper that is used when a wrapping template
model is constructed without being passed an explicit object wrapper.
Gets the delay in milliseconds between checking for newer versions of a
template source.
Returns the character encoding used for reading included files.
Gets the preferred character encoding for the given locale, or the
default encoding if no encoding is set explicitly for the specified
locale.
Get token end column number.
Get token end line number.
Returns a hash model that represents the so-called class enum models.
The environment that was suspended
Returns the quote of the problematic FTL instruction and the FTL stack strace.
Returns a fictitious name-space that contains the globally visible variables
that were created in the template, but not the variables of the data-model.
Returns the globally visible variable of the given name (or null).
Returns the read-only hash of globally visible variables.
Returns a unique identifier for this environment
Returns a set of variable names that are known at the time of call.
Returns the time of last modification of the specified template source.
Returns the time of last modification of the specified template source.
Returns the time of last modification of the specified template source.
Returns the time of last modification of the specified template source.
Returns the time of last modification of the specified template source.
Returns the time of last modification of the specified template source.
Returns the line number of the breakpoint
The line number in the template where the execution of the environment
was suspended.
Returns the assumed locale when searching for template files with no
explicit requested locale.
Returns if localized template lookup is enabled or not.
Returns if localized template lookup is enabled or not.
Returns the loop or macro local variable corresponding to this
variable name.
Returns the template name and the line number separated with a colon
Returns a logger for the specified category.
Returns the main name-space.
This method has the standard behavior when this object has been
created using the standard constructors.
You can also modify the body of this method to customize your error messages.
The path of the template file relative to the directory what you use to store the templates.
Returns the name-space for the name if exists, or null.
Returns the default number format used to convert numbers to strings.
Retrieves the object wrapper used to wrap objects to template models.
Returns the object wrapper instance used by this wrapping template model.
Returns the parent Configurable object of this object.
Returns a trivial template, one that is just a single block of
plain text, no dynamic content.
Returns the character stream of a template represented by the specified
template source.
Returns the character stream of a template represented by the specified
template source.
Returns the character stream of a template represented by the specified
template source.
Returns the character stream of a template represented by the specified
template source.
Returns the character stream of a template represented by the specified
template source.
Returns the character stream of a template represented by the specified
template source.
Returns the underlying servlet.
Returns the textual representation of a setting.
This meant to return the String-to-String Map
of the
settings.
Returns the set containing the names of all defined shared variables.
Returns the template source at the location
specified by the coordinates given.
Returns a string that indicates
where in the template source, this object is.
Returns a hash model that represents the so-called class static models.
Tells whether directives such as if, else, etcetera
must be written as #if, #else, etcetera.
Retrieves the currently processed template.
Equivalent to getTemplate(name, thisCfg.getLocale(), thisCfg.getEncoding(thisCfg.getLocale()), true).
Equivalent to getTemplate(name, locale, thisCfg.getEncoding(locale), true).
Equivalent to getTemplate(name, locale, encoding, true).
Retrieves a template specified by a name and locale, interpreted using
the specified character encoding, either parsed or unparsed.
Loads a template with the given name, in the specified locale and
using the specified character encoding.
Equivalent to getTemplate(name, thisCfg.getLocale(), encoding, true).
Retrieves the exception handler used to handle template exceptions.
Gets a template for importing; used with
importLib(Template importedTemplate, String namespace)
.
Gets a template for inclusion; used with include(Template includedTemplate)
.
Returns the template name of the breakpoint
Returns the date format used to convert date models representing
time-only dates to strings.
Returns the time zone to use when formatting time values.
Given a template name (plus potential locale decorations) retrieves
an URL that points the template source.
Given a template name (plus potential locale decorations) retrieves
an URL that points the template source.
Returns the variable that is visible in this context.
Returns FreeMarker version number string.
Gets whether the FTL parser will try to remove
superfluous white-space around certain FTL tags.
Retrieves the object wrapped by this model.
Retrieves the object wrapped by this model.
Returns a writer that will be used by the engine to feed the
transformation input to the transform.
Returns a writer that will be used by the engine to feed the
transformation input to the transform.
Get the currently used freemarker.ext.dom.XPathSupport used as the XPath engine.
A variant of java.util.HashMap
that uses
System.identityHashCode(Object)
for hashing, and reference comparison
instead of Object.equals(Object)
.
Constructs a new, empty map with a default capacity and load
factor, which is 0.75.
Constructs a new, empty map with the specified initial capacity
and default load factor, which is 0.75.
Constructs a new, empty map with the specified initial
capacity and the specified load factor.
Constructs a new map with the same mappings as the given map.
This is a TemplateExceptionHandler which simply skips errors.
Emulates import
directive.
Emulates import
directive, except that name
must be tempate
root relative.
Processes a Template in the context of this Environment
, including its
output in the Environment
's Writer.
Emulates include
directive, except that name
must be tempate
root relative.
Logs an informational message.
Logs an informational message with accompanying throwable.
Called when servlet detects in a request processing that
application-global (that is, ServletContext-specific) attributes are not yet
set.
Called when servlet detects in a request processing that session-global
(that is, HttpSession-specific) attributes are not yet set.
An exception thrown when there is an attempt to access
an invalid bean property when we are in a "strict bean" mode
Constructs a TemplateModelException with the
specified detail message.
A subclass of TemplateException that says there
is no value associated with a given expression.
Overridden to invoke the generic get method by casting to Map instead of
through reflection - should yield better performance.
Overridden to invoke the getObject method of the resource bundle.
Returns whether the engine runs in the "Classic Compatibile" mode.
Returns true if this instance of cache storage is concurrently
accessible from multiple threads without synchronization.
Returns true if the underlying Map is a ConcurrentMap
.
Returns true if this logger will log debug messages.
Tells whether the model is empty.
Tells whether the model is empty.
Returns true if this map contains no key-value mappings.
Returns PyObject.__len__()
== 0
.
Tells whether the model is empty.
Returns true if this model contains no nodes.
Returns true if this NodeListModel contains no nodes.
Returns true if this bundle contains no objects.
Returns true if this logger will log error messages.
Returns whether exposure of public instance fields of classes is
enabled.
Returns true if this logger will log fatal error messages.
Returns true if this logger will log informational messages.
Tells whether Maps are exposed as simple maps, without access to their
method.
Returns true if this logger will log warning messages.
Retrieves a template model iterator that is used to iterate over
the elements in this collection.
Retrieves a template model iterator that is used to iterate over
the elements in this collection.
This allows the enumeration to be used in a <foreach> block.
This allows the iterator to be used in a <foreach> block.
Retrieves a template model iterator that is used to iterate over
the elements in this collection.
Retrieves a template model iterator that is used to iterate over the elements in this collection.
Retrieves a template model iterator that is used to iterate over
the elements in this collection.
Creates a new model that wraps the specified iterator object.
Create a NodeModel from an XML file.
Create a NodeModel from an XML file.
Create a NodeModel from an XML input source.
Create a NodeModel from a SAX input source.
This exception is thrown when parse errors are encountered.
The following constructors are for use by you for whatever
purpose you can think of.
This constructor is used by the method "generateParseException"
in the generated parser.
Parses a name-value pair list, where the pairs are separated with comma,
and the name and value is separated with colon.
Production for a block of raw text
i.e.
This class executes a FreeMarker template repeatedly in an endless loop.
Called after the execution returns from template.process().
Same as
unwrap(TemplateModel)
, but it doesn't throw exception if
it doesn't know how to unwrap
the object, but returns it as is.
Called as the first step in request processing, before the templating mechanism
is put to work.
Called before the execution is passed to template.process().
Lowest level expression, a literal, a variable,
or a possibly more complex expression bounded
by parentheses.
Processes the template to which this environment belongs.
Processes the template, using data from the map, and outputs
the resulting text to the supplied
Writer The elements of the
map are converted to template models using the default object wrapper
returned by the
getObjectWrapper()
method of the
Configuration.
Processes the template, using data from the root map object, and outputs
the resulting text to the supplied writer, using the supplied
object wrapper to convert map elements to template models.
Processes the template, using data from the root map object, and outputs
the resulting text to the supplied writer, using the supplied
object wrapper to convert map elements to template models.
Associates the specified value with the specified key in this map.
Puts a boolean in the map
Adds a key-value entry to the map.
Copies all of the mappings from the specified map to this one.
Adds all the key/value entries in the map
Puts a template into the loader.
Puts a template into the loader.
Stores a model in the hash so that it doesn't show up in keys()
and values() methods.
Constant used in the constructor specifying that this attribute is
scoped by the configuration.
Constant used in the constructor specifying that this attribute is
scoped by the environment.
Constant used in the constructor specifying that this attribute is
scoped by the template.
Selects the logger library to use.
TemplateHashModel wrapper for a ServletContext attributes.
Sets the value of the attribute in the context of the current environment.
Sets the value of a template-scope attribute in the context of the given
template.
Adds all object in the hash as shared variable to the configuration.
Indicates whether we escape ampersands.
Sets the arithmetic engine used to perform arithmetic operations.
Sets whether attributes shadow items in wrapped objects.
set a map of namespace names to templates for auto-importing
a set of templates.
set the list of automatically included templates.
Sets a class relative to which we do the
Class.getResource() call to load templates.
Toggles the "Classic Compatibile" mode.
Sets a comment for this transformation.
Sets the configuration object to which this cache belongs.
sets TemplateNodeModel as the current visitor node.
Sets a named custom attribute for this configurable.
Sets the date format used to convert date models representing date-only
dates to strings.
Sets the date format used to convert date models representing date-only
dates to strings.
Sets the date format used to convert date models representing datetime
dates to strings.
Sets the date format used to convert date models representing datetime
dates to strings.
Sets the default date type to use for date models that result from
a plain java.util.Date instead of java.sql.Date or
java.sql.Time or java.sql.Timestamp.
Sets the default encoding for converting bytes to characters when
reading template files in a locale for which no explicit encoding
was specified.
Sets the default object wrapper that is used when a wrapping template
model is constructed without being passed an explicit object wrapper.
Sets the delay in milliseconds between checking for newer versions of a
template sources.
Set the destination directory into which the generated
files should be copied to
Set the explicit directory from which to load templates.
Sets the DOM Parser implementation to be used when building NodeModel
objects from XML files.
Sets the character set encoding to use for templates of
a given locale.
Set encoding for generated files.
Sets the character encoding to use for
included files.
sets the error handler to use when parsing the document.
Controls whether public instance fields of classes are exposed to
templates.
Sets the method exposure level.
Set the output file extension.
Sets a variable that is visible globally.
Turn on/off incremental processing.
Sets the locale to assume when searching for template files with no
explicit requested locale.
Sets the locale to assume when searching for template files with no
explicit requested locale.
Enables/disables localized template lookup.
Setis if localized template lookup is enabled or not.
Sets a local variable (one effective only during a macro invocation).
Sets the maximal scale to use when multiplying BigDecimal numbers.
Sets whether methods shadow items in beans.
Sets the minimal scale to use when dividing BigDecimal numbers.
Sets the number format used to convert numbers to strings.
Sets the number format used to convert numbers to strings.
Sets the object wrapper used to wrap objects to template models.
When wrapping an object, the BeansWrapper commonly needs to wrap
"sub-objects", for example each element in a wrapped collection.
Sets the output encoding.
Sets the output encoding.
Set the path to the project XML file
Indicates whether we escape quotes.
Sets the servlet context from which to load templates
Sets a setting by a name and string value.
Sets a setting by name and string value.
Reads a setting list (key and element pairs) from the input stream.
Set the settings stored in a Properties
object.
Adds a shared variable to the configuration.
Adds shared variable to the configuration.
By default the BeansWrapper wraps classes implementing
java.util.Map using
MapModel
.
Specifies if an attempt to read a bean property that doesn't exist in the
wrapped object should throw an
InvalidPropertyException
.
Sets whether directives such as if, else, etcetera
must be written as #if, #else, etcetera.
Indicates whether we escape tags.
Determines the syntax of the template files (angle bracket VS square bracket)
that has no ftl directive in it.
Sets the exception handler used to handle template exceptions.
Sets the exception handler used to handle template exceptions.
Sets a template loader that is used to look up and load templates.
Set the time in seconds that must elapse before checking whether there is a newer
version of a template file.
Sets the date format used to convert date models representing time-only
values to strings.
Sets the date format used to convert date models representing time-only
values to strings.
Sets the time zone to use when formatting time values.
Sets the time zone to use when formatting time values.
Sets the URL escaping charset.
Sets the URL escaping charset.
Sets whether this wrapper caches model instances.
Sets whether this wrapper caches model instances.
Sets whether this wrapper caches model instances.
Sets whether to validate the XML input.
Sets a variable in the current namespace.
Sets whether the FTL parser will try to remove
superfluous white-space around certain FTL tags.
Set an alternative implementation of freemarker.ext.dom.XPathSupport to use
as the XPath engine.
Object wrapper that uses SimpleXXX wrappers only.
An implementation of interface CharStream, where the stream is assumed to
contain only ASCII characters (without unicode processing).
A simple implementation of the TemplateDateModel
interface.
Creates a new date model wrapping the specified date object and
having DATE type.
Creates a new date model wrapping the specified time object and
having TIME type.
Creates a new date model wrapping the specified time object and
having DATETIME type.
Creates a new date model wrapping the specified date object and
having the specified type.
A simple implementation of the TemplateHashModelEx
interface, using an underlying Map
or SortedMap
.
Creates an empty simple hash using the specified object wrapper.
This is a trivial subclass that exists for backward compatibility
with the SimpleList from FreeMarker Classic.
Model used by
BeansWrapper
when
simpleMapWrapper
mode is enabled.
A simple implementation of the TemplateNumberModel
interface.
The default implementation of the ObjectWrapper
interface.
A simple implementation of the TemplateScalarModel
interface, using a String.
Constructs a SimpleScalar containing a string value.
A convenient implementation of a list.
Constructs a simple sequence that will contain the elements
from the specified Collection
and will use the specified object
wrapper.
Constructs an empty simple sequence using the specified object wrapper.
A simple method model used as a test bed.
Removes comments and processing instruction, and then unites adjacent text nodes.
Returns the number of key-value mappings in this map.
Returns PyObject.__len__()
.
Returns PyObject.__len__()
.
Returns the number of nodes in this model's nodelist.
Constant returned from
onStart()
that tells the
template engine to skip evaluation of the body.
Soft cache storage is a cache storage that uses SoftReference
objects to hold the objects it was passed, therefore allows the garbage
collector to purge the cache when it determines that it wants to free up
memory.
This variable determines which constructor was used to create
this object and thereby affects the semantics of the
"getMessage" method (see below).
Splits a string at the specified character.
Splits a string at the specified string.
A filter that compresses each sequence of consecutive whitespace
to a single line break (if the sequence contains a line break) or a
single space.
Interface that can be implemented by template loaders that maintain some
sort of internal state (i.e.
Whether parser is static.
Stops the processing of the environment after it was stopped on
a breakpoint.
This exception is thrown when a <stop>
directive is encountered.
Sequence variable implementation that wraps a String[] with relatively low
resource utilization.
Warning: Does not copy the argument array!
Creates a new model that wraps the specified object with BeanModel + scalar
functionality.
A production representing the ${...}
that outputs a variable.
A
TemplateLoader
that uses a Map with Strings as its source of
templates.
Some text related utilities.
Strong cache storage is a cache storage that simply wraps a Map
.
A hash model associated with a servlet context that can load JSP tag
libraries associated with that servlet context.
Creates a new JSP taglib factory that will be used to load JSP taglibs
for the web application represented by the passed servlet context.
A core FreeMarker API that represents a compiled template.
Constructs a template from a character stream.
This is equivalent to Template(name, reader, cfg, null)
Constructs a template from a character stream.
Objects that will be interpreted as true/false in the appropriate
context must implement this interface.
A class that performs caching and on-demand loading of the templates.
Returns a template cache that will first try to load a template from
the file system relative to the current user directory (i.e.
Creates a new template cache with a custom template loader that is used
to load the templates.
Creates a new template cache with a custom template loader that is used
to load the templates.
This interface can be implemented by a class to make a variable "foreach-able",
i.e.
Date values in a template data model must implement this interface.
Represents the body of a directive invocation.
Objects that implement this interface can be used as user-defined directives
(much like macros).
Objects that represent elements in the compiled
tree representation of the template necessarily
descend from this abstract class.
The FreeMarker classes usually use this exception and its descendants to
signal FreeMarker specific exceptions.
Constructs a TemplateException with the given underlying Exception,
but no detail message.
Constructs a TemplateException with no specified detail message
or underlying cause.
Constructs a TemplateException with both a description of the error
that occurred and the underlying Exception that caused this exception
to be raised.
Constructs a TemplateException with the given detail message,
but no underlying cause exception.
An API for objects that handle exceptions that are thrown during
template rendering.
Hashes in a data model must implement this interface.
An extended hash interface with a couple of extra hooks.
A template loader is an object that can find the source stream for a
template, can retrieve its time of last modification as well as the stream
itself.
Objects that act as methods in a template data model must implement this
interface.
This is a marker interface that indicates that an object
can be put in a template's data model.
Implemented by classes that serve as adapters for template model objects in
some other object model.
Template model implementation classes should throw this exception if
requested data cannot be retrieved.
Constructs a TemplateModelException with no
specified detail message.
Constructs a TemplateModelException with the given underlying
Exception, but no detail message.
Constructs a TemplateModelException with the
specified detail message.
Constructs a TemplateModelException with both a description of the error
that occurred and the underlying Exception that caused this exception
to be raised.
This interface is used to iterate over a set of template models, and is usually
returned from an instance of
TemplateCollectionModel
.
Sequence that wraps a java.util.List
of already wrapped objects
directly, with minimal resource usage.
Describes objects that are nodes in a tree.
Numeric values in a template data model must implement this interface.
Objects that represent instructions or expressions
in the compiled tree representation of the template
all descend from this abstract base class.
String values in a template data model must implement this interface.
List values in a template data model whose elements are accessed by the
index operator should implement this interface.
Test suite for FreeMarker.
Objects that implement this interface can be used as user-defined directives
(much like macros); you should rather use the newer
TemplateDirectiveModel
instead.
A TemplateElement representing a block of plain text.
The date model represents a time-only value.
Read in a template and convert it to a canonical format.
This is a reference to the "tokenImage" array of the generated
parser within which the parse error occurred.
Constructor with message and reason.
Note that this method creates and returns a deep-copy of the underlying list used
internally.
Note that this method creates and returns a deep-copy of the underlying hash used
internally.
Convenience method for returning the String value of the
underlying map.
Returns a string representing the raw template
text in canonical form.
A class that contains a main() method for command-line invocation
of a FreeMarker XML transformation.
Performs newline normalization on FreeMarker output.
Performs a transformation/filter on FreeMarker output.
An interface that can be implemented by writers returned from
TemplateTransformModel.getWriter(java.io.Writer, java.util.Map)
.
Part of the TestTransform testcase suite.
Creates new TransformHashWrapper
Simple test of the interaction between MethodModels and TransformModels.
Another test of the interaction between MethodModels and TransformModels.
A TemplateTransformModel that includes properties.
TRUE - static field in class freemarker.template.utility.
Constants A singleton object to represent boolean true