Package freemarker.template.utility
package freemarker.template.utility
Various classes used by core FreeMarker code but might be useful outside of it too.
-
ClassDescriptionDeprecated.Deprecated.Not needed anymore, as FreeMarker now requires higher than Java 1.3Frequently used constant
TemplateModel
values.Date and time related utilities.Used internally byDateUtil
; don't use its implementations for anything else.Used internally byDateUtil
; don't use its implementations for anything else.Non-thread-safe implementation that hard-references a calendar internally.Non-thread-safe factory that hard-references a calendar internally.Utility methods for unwrappingTemplateModel
-s.Deprecated.UseNodeModel
insteadGives FreeMarker the the ability to execute external commands.Performs an HTML escape of a given template fragment.A crude first pass at an embeddable Jython interpreterTransformer that supports FreeMarker legacy behavior: all newlines appearing within the transformed area will be transformed into the platform's default newline.Indicates that an argument that must be non-null
wasnull
.AWriter
that simply drops what it gets.Number- and math-related utilities.An object that you can make available in a template to instantiate arbitrary beans-wrapped objects in a template.Used for the trivial cases of the factory pattern.Experimental - subject to change: Implemented byObjectWrapper
-s to helpTemplateModel
-s to implement thesomeValue?api
operation.Experimental - subject to change: Union of the interfaces that a typical feature richObjectWrapper
is expected to implement.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.Some text related utilities.Static utility method related toTemplateModel
-s that didn't fit elsewhere.Deprecated.Will be removed (main method in a library, often classified as CWE-489 "Leftover Debug Code").The equivalent of JDK 1.3 UndeclaredThrowableException.Indicates that the time zone name is not recognized.Thrown when FreeMarker runs into aNumber
subclass that it doesn't yet support.Implemented by objects that can be made permanently read-only.Performs an XML escaping of a given template fragment.
<assign x>...</assign>
.