Package freemarker.ext.jython

Provides model implementations that allow access to arbitrary Jython objects.

Class Summary

JythonHashModel Model for Jython dictionaries (org.python.core.PyDictionary and org.python.core.PyStringMap).
JythonModel Generic model for arbitrary Jython objects.
JythonNumberModel Model for Jython numeric objects (org.python.core.PyInteger, org.python.core.PyLong, org.python.core.PyFloat).
JythonSequenceModel Model for Jython sequence objects (org.python.core.PySequence descendants).
JythonWrapper An object wrapper that wraps Jython objects into FreeMarker template models and vice versa.
Provides model implementations that allow access to arbitrary Jython objects.

Most of the issues dealing with Jython objects are handled by the JythonWrapper.wrap(Object) method. In normal cases, this is the only method you should use to turn an arbitrary Jython object into a FreeMarker TemplateModel. Additionally, you can manually create instances of any wrapper class using its constructors.