| 
||||||||||
| 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
public class 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, getAdaptedObject, 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 TemplateSequenceModelnull if
 the index is out of bounds. Note that a null value is
 interpreted by FreeMarker as "variable does not exist", and accessing
 a missing variables is usually considered as an error in the FreeMarker
 Template Language, so the usage of a bad index will not remain hidden.
TemplateModelException
public int size()
         throws TemplateModelException
PyObject.__len__().
size in interface TemplateSequenceModelTemplateModelExceptionpublic TemplateModelIterator iterator()
TemplateCollectionModel
iterator in interface TemplateCollectionModel
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||