Package freemarker.template.utility
package freemarker.template.utility
Various classes used by core FreeMarker code but might be useful outside of it too.
-
InterfaceDescriptionUsed internally by
DateUtil
; don't use its implementations for anything else.Used internally byDateUtil
; don't use its implementations for anything else.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.Implemented by objects that can be made permanently read-only. -
ClassDescriptionDeprecated.Deprecated.Not needed anymore, as FreeMarker now requires higher than Java 1.3Frequently used constant
TemplateModel
values.Date and time related utilities.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.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.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").Performs an XML escaping of a given template fragment. -
Enum ClassDescriptionUsed as the argument of
StringUtil.jsStringEnc(String, JsStringEncCompatibility, JsStringEncQuotation)
.Used as the argument ofStringUtil.jsStringEnc(String, JsStringEncCompatibility, JsStringEncQuotation)
. -
ExceptionDescriptionIndicates that an argument that must be non-
null
wasnull
.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.
<assign x>...</assign>
.