| 1 | |
package org.webslinger.ext.bsf.javaclass; |
| 2 | |
|
| 3 | |
import org.apache.bsf.BSFException; |
| 4 | |
|
| 5 | |
import org.webslinger.bsf.CompilingLanguageEngineImpl; |
| 6 | |
import org.webslinger.bsf.LanguageEngineInfo; |
| 7 | |
|
| 8 | |
public class JavaclassEngine extends CompilingLanguageEngineImpl<Object, Class<Object>> { |
| 9 | 0 | public JavaclassEngine() { |
| 10 | 0 | compiler = new JavaclassCompiler(this); |
| 11 | 0 | } |
| 12 | |
|
| 13 | |
public LanguageEngineInfo getLanguageEngineInfo() { |
| 14 | 0 | return JavaclassInfo.INSTANCE; |
| 15 | |
} |
| 16 | |
|
| 17 | |
public Object apply(Object body, Object compiled, Object[] args) throws Exception { |
| 18 | 0 | throw new BSFException(BSFException.REASON_UNSUPPORTED_FEATURE, "apply"); |
| 19 | |
} |
| 20 | |
|
| 21 | |
public Object eval(Object body, Object compiled) throws Exception { |
| 22 | 0 | throw new BSFException(BSFException.REASON_UNSUPPORTED_FEATURE, "apply"); |
| 23 | |
} |
| 24 | |
|
| 25 | |
protected void exec(Object body, Object compiled) throws Exception { |
| 26 | 0 | throw new BSFException(BSFException.REASON_UNSUPPORTED_FEATURE, "exec"); |
| 27 | |
} |
| 28 | |
} |