|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfreemarker.ext.jython.JythonModel
freemarker.ext.jython.JythonSequenceModel
Model for Jython sequence objects (PySequence
descendants).
Field Summary |
Fields inherited from class freemarker.ext.jython.JythonModel |
object, wrapper |
Fields inherited from interface freemarker.template.TemplateModel |
NOTHING |
Fields inherited from interface freemarker.template.TemplateBooleanModel |
FALSE, TRUE |
Fields inherited from interface freemarker.template.TemplateScalarModel |
EMPTY_STRING |
Constructor Summary | |
JythonSequenceModel(org.python.core.PyObject object,
JythonWrapper wrapper)
|
Method Summary | |
TemplateModel |
get(int index)
Returns PyObject.__finditem__(int) . |
TemplateModelIterator |
iterator()
Retrieves a template model iterator that is used to iterate over the elements in this collection. |
int |
size()
Returns PyObject.__len__() . |
Methods inherited from class freemarker.ext.jython.JythonModel |
exec, get, getAsBoolean, getAsString, getWrappedObject, isEmpty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JythonSequenceModel(org.python.core.PyObject object, JythonWrapper wrapper)
Method Detail |
public TemplateModel get(int index) throws TemplateModelException
PyObject.__finditem__(int)
.
get
in interface TemplateSequenceModel
TemplateModelException
public int size() throws TemplateModelException
PyObject.__len__()
.
size
in interface TemplateSequenceModel
TemplateModelException
public TemplateModelIterator iterator()
TemplateCollectionModel
iterator
in interface TemplateCollectionModel
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |