| 1 | |
package org.webslinger.ext.bsf.beanshell; |
| 2 | |
|
| 3 | |
import bsh.BshMethod; |
| 4 | |
import bsh.CallStack; |
| 5 | |
import bsh.Interpreter; |
| 6 | |
|
| 7 | |
public final class BeanShellCompiled { |
| 8 | |
protected final Interpreter interpeter; |
| 9 | |
protected final BshMethod method; |
| 10 | |
|
| 11 | 3 | public BeanShellCompiled(Interpreter interpeter, BshMethod method) { |
| 12 | 3 | this.interpeter = interpeter; |
| 13 | 3 | this.method = method; |
| 14 | 3 | } |
| 15 | |
|
| 16 | |
public Object invoke(Object[] args) throws Exception { |
| 17 | 3 | return method.invoke(args, interpeter, new CallStack()); |
| 18 | |
} |
| 19 | |
} |