}
@Override
public XQExpression staticAnalysis(StaticContext statEnv) throws XQueryException {
super.staticAnalysis(statEnv);
final OverloadedFunction op = resolveOp();
op.staticAnalysis(statEnv, _leftOperand, _rightOperand);
this._op = op;
if(_leftOperand instanceof Evaluable && _rightOperand instanceof Evaluable) {
// apply eagar evaluation
final Sequence<? extends Item> evaluated = eval(null, DynamicContext.DUMMY);
return new PreEvaluatedVariable(evaluated);
}
this._type = op.getReturnType();
return this;
}