@Override protected List<Object> getExternalCalculationConditions() { List<Object> result = new ArrayList<Object>(); if (operator != null && !operator.supportsBasicCalculation()) { result.add(this); } if (rightMathExpression != null && !rightMathExpression.supportsBasicCalculation()) { result.add(rightMathExpression); } return result; }
@Override protected List<Object> getExternalCalculationConditions() { List<Object> result = new ArrayList<Object>(); if (!operator.supportsBasicCalculation()) { result.add(this); } if (!left.supportsBasicCalculation()) { result.add(left); } if (!right.supportsBasicCalculation()) { result.add(right); } return result; }
protected boolean supportsBasicCalculation() { if (!operator.supportsBasicCalculation()) { return false; } return left.supportsBasicCalculation() && right.supportsBasicCalculation(); }
@Override public boolean supportsBasicCalculation() { if (operator != null && !operator.supportsBasicCalculation()) { return false; } if (left != null && !left.supportsBasicCalculation()) { return false; } if (rightMathExpression != null && !rightMathExpression.supportsBasicCalculation()) { return false; } return true; }
@Override protected int getNumberOfExternalCalculations() { int total = 0; if (operator != null && !operator.supportsBasicCalculation()) { total++; } if (left != null && !left.supportsBasicCalculation()) { total++; } if (rightMathExpression != null && !rightMathExpression.supportsBasicCalculation()) { total++; } return total; }
@Override public boolean supportsBasicCalculation() { if (!left.supportsBasicCalculation()) { return false; } if (!rightMathExpression.supportsBasicCalculation()) { return false; } if (!operator.supportsBasicCalculation()) { return false; } return true; }
@Override protected int getNumberOfExternalCalculations() { int total = 0; if (operator != null && !operator.supportsBasicCalculation()) { total++; } if (!left.supportsBasicCalculation()) { total++; } if (rightMathExpression != null && !rightMathExpression.supportsBasicCalculation()) { total++; } return total; }
@Override protected int getNumberOfExternalCalculations() { int total = 0; if (!operator.supportsBasicCalculation()) { total++; } if (!left.supportsBasicCalculation()) { total++; } if (!right.supportsBasicCalculation()) { total++; } return total; }