Home » freemarker-2.3.13 » freemarker.ext.jython » [javadoc | source]
freemarker.ext.jython
public class: JythonNumberModel [javadoc | source]
java.lang.Object
   freemarker.ext.jython.JythonModel
      freemarker.ext.jython.JythonNumberModel

All Implemented Interfaces:
    TemplateNumberModel, AdapterTemplateModel, TemplateBooleanModel, TemplateMethodModelEx, WrapperTemplateModel, TemplateHashModel, TemplateScalarModel

Model for Jython numeric objects (org.python.core.PyInteger , org.python.core.PyLong , org.python.core.PyFloat ).
Field Summary
static final  ModelFactory FACTORY     
Fields inherited from freemarker.ext.jython.JythonModel:
object,  wrapper,  FACTORY
Constructor:
 public JythonNumberModel(PyObject object,
    JythonWrapper wrapper) 
Method from freemarker.ext.jython.JythonNumberModel Summary:
getAsNumber
Methods from freemarker.ext.jython.JythonModel:
exec,   get,   getAdaptedObject,   getAsBoolean,   getAsString,   getWrappedObject,   isEmpty
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from freemarker.ext.jython.JythonNumberModel Detail:
 public Number getAsNumber() throws TemplateModelException