public void calculateValue(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) { Value[] projs = _exps.projections; for (int i = 0; i < projs.length; i++) { if (projs[i] instanceof GeneralCaseExpression) { ((GeneralCaseExpression)projs[i]).setOtherPath(other); ((GeneralCaseExpression)projs[i]).setOtherState(otherState); } else if (projs[i] instanceof SimpleCaseExpression) { ((SimpleCaseExpression)projs[i]).setOtherPath(other); ((SimpleCaseExpression)projs[i]).setOtherState(otherState); } else if (projs[i] instanceof NullIfExpression) { ((NullIfExpression)projs[i]).setOtherPath(other); ((NullIfExpression)projs[i]).setOtherState(otherState); } else if (projs[i] instanceof CoalesceExpression) { ((CoalesceExpression)projs[i]).setOtherPath(other); ((CoalesceExpression)projs[i]).setOtherState(otherState); } } }
public void calculateValue(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) { Value[] projs = _exps.projections; for (int i = 0; i < projs.length; i++) { if (projs[i] instanceof GeneralCaseExpression) { ((GeneralCaseExpression)projs[i]).setOtherPath(other); ((GeneralCaseExpression)projs[i]).setOtherState(otherState); } else if (projs[i] instanceof SimpleCaseExpression) { ((SimpleCaseExpression)projs[i]).setOtherPath(other); ((SimpleCaseExpression)projs[i]).setOtherState(otherState); } else if (projs[i] instanceof NullIfExpression) { ((NullIfExpression)projs[i]).setOtherPath(other); ((NullIfExpression)projs[i]).setOtherState(otherState); } else if (projs[i] instanceof CoalesceExpression) { ((CoalesceExpression)projs[i]).setOtherPath(other); ((CoalesceExpression)projs[i]).setOtherState(otherState); } } }
public void calculateValue(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) { Value[] projs = _exps.projections; for (int i = 0; i < projs.length; i++) { if (projs[i] instanceof GeneralCaseExpression) { ((GeneralCaseExpression)projs[i]).setOtherPath(other); ((GeneralCaseExpression)projs[i]).setOtherState(otherState); } else if (projs[i] instanceof SimpleCaseExpression) { ((SimpleCaseExpression)projs[i]).setOtherPath(other); ((SimpleCaseExpression)projs[i]).setOtherState(otherState); } else if (projs[i] instanceof NullIfExpression) { ((NullIfExpression)projs[i]).setOtherPath(other); ((NullIfExpression)projs[i]).setOtherState(otherState); } else if (projs[i] instanceof CoalesceExpression) { ((CoalesceExpression)projs[i]).setOtherPath(other); ((CoalesceExpression)projs[i]).setOtherState(otherState); } } }
public void calculateValue(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState) { Value[] projs = _exps.projections; for (int i = 0; i < projs.length; i++) { if (projs[i] instanceof GeneralCaseExpression) { ((GeneralCaseExpression)projs[i]).setOtherPath(other); ((GeneralCaseExpression)projs[i]).setOtherState(otherState); } else if (projs[i] instanceof SimpleCaseExpression) { ((SimpleCaseExpression)projs[i]).setOtherPath(other); ((SimpleCaseExpression)projs[i]).setOtherState(otherState); } else if (projs[i] instanceof NullIfExpression) { ((NullIfExpression)projs[i]).setOtherPath(other); ((NullIfExpression)projs[i]).setOtherState(otherState); } else if (projs[i] instanceof CoalesceExpression) { ((CoalesceExpression)projs[i]).setOtherPath(other); ((CoalesceExpression)projs[i]).setOtherState(otherState); } } }