Coverage Report - org.webslinger.bsf.janino.JaninoEngine
 
Classes in this File Line Coverage Branch Coverage Complexity
JaninoEngine
50%
4/8
N/A
0
 
 1  
 package org.webslinger.bsf.janino;
 2  
 
 3  
 import org.webslinger.bsf.CompilingLanguageEngineImpl;
 4  
 import org.webslinger.bsf.LanguageEngineInfo;
 5  
 
 6  
 public class JaninoEngine extends CompilingLanguageEngineImpl<Object, Class<Object>> {
 7  21
     public JaninoEngine() {
 8  21
         compiler = new JaninoCompiler(this);
 9  21
     }
 10  
 
 11  
     public LanguageEngineInfo getLanguageEngineInfo() {
 12  0
         return JaninoInfo.INSTANCE;
 13  
     }
 14  
 
 15  
     public Object apply(Object body, Object compiled, Object[] args) throws Exception {
 16  953
         return ((JaninoCompiler.Apply) compiled).apply(args);
 17  
     }
 18  
 
 19  
     public Object eval(Object body, Object compiled) throws Exception {
 20  0
         return ((JaninoCompiler.Eval) compiled).eval();
 21  
     }
 22  
 
 23  
     protected void exec(Object body, Object compiled) throws Exception {
 24  0
         ((JaninoCompiler.Exec) compiled).exec();
 25  0
     }
 26  
 }