Coverage Report - org.webslinger.ext.bsf.jython.JythonEngine
 
Classes in this File Line Coverage Branch Coverage Complexity
JythonEngine
56%
5/9
N/A
0
 
 1  
 package org.webslinger.ext.bsf.jython;
 2  
 
 3  
 import org.webslinger.bsf.CompilingLanguageEngineImpl;
 4  
 import org.webslinger.bsf.LanguageEngineInfo;
 5  
 
 6  
 import org.python.core.PyObject;
 7  
 
 8  3
 public class JythonEngine extends CompilingLanguageEngineImpl<PyObject, PyObject> {
 9  3
     public JythonEngine() {
 10  3
         compiler = new JythonCompiler(this);
 11  3
     }
 12  
 
 13  
     public LanguageEngineInfo getLanguageEngineInfo() {
 14  0
         return JythonInfo.INSTANCE;
 15  
     }
 16  
 
 17  
     public Object apply(Object body, PyObject compiled, Object[] args) throws Exception {
 18  3
         return compiled.__call__((PyObject[]) args);
 19  
     }
 20  
 
 21  
     public Object eval(Object body, PyObject compiled) throws Exception {
 22  0
         return compiled.__call__();
 23  
     }
 24  
 
 25  
     public void exec(Object body, PyObject compiled) throws Exception {
 26  0
         compiled.__call__();
 27  0
     }
 28  
 }