@Override public OMathExpression copy() { return super.copy(); } }
public OMathExpression copy() { OMathExpression result = null; try { result = getClass().getConstructor(Integer.TYPE).newInstance(-1); } catch (Exception e) { throw new RuntimeException(e); } result.childExpressions = childExpressions.stream().map(x -> x.copy()).collect(Collectors.toList()); result.operators.addAll(operators); return result; }
public OArrayNumberSelector copy() { OArrayNumberSelector result = new OArrayNumberSelector(-1); result.inputValue = inputValue == null ? null : inputValue.copy(); result.expressionValue = expressionValue == null ? null : expressionValue.copy(); result.integer = integer; return result; }
@Override public OArrayConcatExpressionElement copy() { OArrayConcatExpressionElement result = new OArrayConcatExpressionElement(-1); result.singleQuotes = singleQuotes; result.doubleQuotes = doubleQuotes; result.isNull = isNull; result.rid = rid == null ? null : rid.copy(); result.mathExpression = mathExpression == null ? null : mathExpression.copy(); result.json = json == null ? null : json.copy(); result.booleanValue = booleanValue; return result; }
public OExpression copy() { OExpression result = new OExpression(-1); result.singleQuotes = singleQuotes; result.doubleQuotes = doubleQuotes; result.isNull = isNull; result.rid = rid == null ? null : rid.copy(); result.mathExpression = mathExpression == null ? null : mathExpression.copy(); result.arrayConcatExpression = arrayConcatExpression == null ? null : arrayConcatExpression.copy(); result.json = json == null ? null : json.copy(); result.booleanValue = booleanValue; return result; }
@Override public ONotInCondition copy() { ONotInCondition result = new ONotInCondition(-1); result.operator = operator == null ? null : (OBinaryCompareOperator) operator.copy(); result.left = left == null ? null : left.copy(); result.rightMathExpression = rightMathExpression == null ? null : rightMathExpression.copy(); result.rightStatement = rightStatement == null ? null : rightStatement.copy(); result.rightParam = rightParam == null ? null : rightParam.copy(); result.right = right == null ? null : right; return result; }
@Override public OInCondition copy() { OInCondition result = new OInCondition(-1); result.operator = operator == null ? null : (OBinaryCompareOperator) operator.copy(); result.left = left == null ? null : left.copy(); result.rightMathExpression = rightMathExpression == null ? null : rightMathExpression.copy(); result.rightStatement = rightStatement == null ? null : rightStatement.copy(); result.rightParam = rightParam == null ? null : rightParam.copy(); result.right = right == null ? null : right; return result; }
OInCondition condition = new OInCondition(-1); condition.setLeft(left); condition.setRightMathExpression(((OInCondition) singleExp).getRightMathExpression().copy()); indexKeyValue.getSubBlocks().add(condition); blockIterator.remove();