Hi,
I do this :
public class FakeGenericInterpreter ....
Interpreter interpreter ;
public FakeGenericInterpreter (){
interpreter = new Interpreter();
}
public Object eval(String script) throws ScriptException {
try {
return interpreter.eval(script);
} catch (EvalError e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return null;
}
Am I right ?