@Override public EvalNode bind(EvalContext evalContext, Schema schema) { super.bind(evalContext, schema); try { if (evalContext != null && evalContext.hasScriptEngine(this)) { this.invokeContext.setScriptEngine(evalContext.getScriptEngine(this)); this.invokeContext.getScriptEngine().setFirstPhase(firstPhase); this.invokeContext.getScriptEngine().setLastPhase(lastPhase); } this.functionInvoke.init(invokeContext); } catch (IOException e) { throw new RuntimeException(e); } return this; }
@Override public EvalNode bind(EvalContext evalContext, Schema schema) { super.bind(evalContext, schema); try { if (evalContext != null && evalContext.hasScriptEngine(this)) { this.invokeContext.setScriptEngine(evalContext.getScriptEngine(this)); this.invokeContext.getScriptEngine().setFirstPhase(firstPhase); this.invokeContext.getScriptEngine().setLastPhase(lastPhase); } this.functionInvoke.init(invokeContext); } catch (IOException e) { throw new RuntimeException(e); } return this; }
@Override public EvalNode bind(EvalContext evalContext, Schema schema) { super.bind(evalContext, schema); try { this.funcInvoke = FunctionInvoke.newInstance(funcDesc); if (evalContext != null) { if (evalContext.hasScriptEngine(this)) { this.invokeContext.setScriptEngine(evalContext.getScriptEngine(this)); } if (evalContext.hasTimeZone()) { this.invokeContext.setTimeZone(evalContext.getTimeZone()); } } this.funcInvoke.init(invokeContext); } catch (IOException e) { throw new RuntimeException(e); } return this; }
@Override public EvalNode bind(EvalContext evalContext, Schema schema) { super.bind(evalContext, schema); try { this.funcInvoke = FunctionInvoke.newInstance(funcDesc); if (evalContext != null) { if (evalContext.hasScriptEngine(this)) { this.invokeContext.setScriptEngine(evalContext.getScriptEngine(this)); } if (evalContext.hasTimeZone()) { this.invokeContext.setTimeZone(evalContext.getTimeZone()); } } this.funcInvoke.init(invokeContext); } catch (IOException e) { throw new RuntimeException(e); } return this; }