/** * @param rightOperand * @return this builder itself, so that calls the various exposed methods can be chained. */ public OperationBuilder setRightOperand(final Expression rightOperand) { operation.setRightOperand(rightOperand); return this; }
/** * @param rightOperand * @return this builder itself, so that calls the various exposed methods can be chained. */ public OperationBuilder setRightOperand(final Expression rightOperand) { operation.setRightOperand(rightOperand); return this; }
@Override public Operation copy() { try { final OperationImpl clone = (OperationImpl) clone(); if (getRightOperand() != null) { clone.setRightOperand(getRightOperand().copy()); } return clone; } catch (CloneNotSupportedException e) { return null; } }
@Override public Operation copy() { try { final OperationImpl clone = (OperationImpl) clone(); if (getRightOperand() != null) { clone.setRightOperand(getRightOperand().copy()); } return clone; } catch (CloneNotSupportedException e) { return null; } }
public static Operation toOperation(final SOperation operation) { final OperationImpl operationImpl = new OperationImpl(); operationImpl.setRightOperand(toExpression(operation.getRightOperand())); operationImpl.setOperator(operation.getOperator()); operationImpl.setType(toOperatorType(operation.getType())); final LeftOperandImpl leftOperand = new LeftOperandImpl(); final SLeftOperand sLeftOperand = operation.getLeftOperand(); leftOperand.setName(sLeftOperand.getName()); leftOperand.setType(sLeftOperand.getType()); operationImpl.setLeftOperand(leftOperand); return operationImpl; }
public static Operation toOperation(final SOperation operation) { final OperationImpl operationImpl = new OperationImpl(); operationImpl.setRightOperand(toExpression(operation.getRightOperand())); operationImpl.setOperator(operation.getOperator()); operationImpl.setType(toOperatorType(operation.getType())); final LeftOperandImpl leftOperand = new LeftOperandImpl(); final SLeftOperand sLeftOperand = operation.getLeftOperand(); leftOperand.setName(sLeftOperand.getName()); leftOperand.setType(sLeftOperand.getType()); operationImpl.setLeftOperand(leftOperand); return operationImpl; }